全局node_modules路径
/usr/lib/node_modules/
# npm install -g X
# ll /usr/lib/node_modules/


当前工程的node_modules路径
./node_modules
# npm install --global-style X

各个模块的依赖关系:


参考
如何上传发布自己的npm组件包
https://blog.csdn.net/nsrainbow/article/details/37903097
将npm包发布在私有仓库(nexus)中
https://blog.csdn.net/wjyyhhxit/article/details/103595333
npm用法及离线安装方法
https://www.cnblogs.com/laozhbook/p/npm_help.html
离线安装npm包的几种方法
https://www.kunjuke.com/jiaocheng/22728/
offline-npm
https://www.npmjs.com/package/offline-npm
npm 模块安装机制简介
http://www.ruanyifeng.com/blog/2016/01/npm-install.html
npm包的离线安装
https://www.zcfy.cc/article/offline-installation-of-npm-packages-924.html
网友评论