我目前正在无法访问 Internet 的网络中设置 Node.js 开发环境。
我安装了一个 nexus 存储库,用于存储开发人员使用的最常见的 npm 包。
我可以将我自己的模块发布到此存储库。
如何将这些模块发布到私有(private)存储库中?
最佳答案
您可以使用 npm 命令 npmpublish
发布第三个模块,只需将 package.json
中的发布注册表设置为 nexus url。欲了解更多信息,您可以阅读本指南 - Use nexus as npm packages repository
关于node.js - 如何将下载的 npm 依赖项发布到私有(private)本地存储库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46560275/