node.js - 如何将下载的 npm 依赖项发布到私有(private)本地存储库?

标签 node.js npm repository publish nexus

我目前正在无法访问 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/

相关文章:

javascript - 解释 Node 回调和单线程

javascript - "npm ERR! errno 3221225477"使用oracledb查询时Node出错

json - 我的 NPM 项目不会发布

node.js - 还是 "Please try running this command again as root/Administrator."

eclipse mars/luna 无法读取存储库

svn - svn propset 是否仍使用 --force 标志选项在 svn 导出上设置?

node.js - 如何使用 Node.js 和 Axios 将文件上传到 AWS 中的预签名 URL?

node.js - 将windows1252转换为NodeJS特殊字符中的utf-8

node.js - 配置/安装 nodemon 时出错

c# - 在 EF Core 中更新数据的更好方法是什么