摘要: 安装 使用npm 全局安装即可 npm install -g verdaccio 运行 安装完成后直接输入 verdaccio 命令即可运行 这时候我们打开浏览器输入 http://localhost:4873/ 即可打开 如何使用#当前npm 服务指向 本地 npm set registry ht 阅读全文
posted @ 2021-04-30 17:57 居无常 阅读(606) 评论(0) 推荐(0) 编辑
摘要: npm 很早就支持了 scope 功能,当前很多流行的库采用这种形式发布,如 babel: { "devDependencies": { "@babel/core": "^7.0.0", "@babel/plugin-proposal-class-properties": "^7.0.0", "@b 阅读全文
posted @ 2021-04-30 17:30 居无常 阅读(2600) 评论(0) 推荐(0) 编辑
摘要: 在自己搭建Verdaccio服务器上发布自己的npm项目 发布包 npm publish 取消发布 npm unpublish 包名|包名+版本 --force(可选) scope作用 参考:https://docs.npmjs.com/about-scopes @ 和 / 之间的部分就是scope 阅读全文
posted @ 2021-04-30 17:04 居无常 阅读(942) 评论(0) 推荐(0) 编辑
摘要: 1.临时使用 npm --registry https://registry.npm.taobao.org install express 2.持久使用 npm config set registry https://registry.npm.taobao.org 配置后可通过下面方式来验证是否成功 阅读全文
posted @ 2021-04-30 15:50 居无常 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: nrm(npm registry manager )是npm的镜像源管理工具,有时候国外资源太慢,使用这个就可以快速地在 npm 源间切换 假如你搭建个人或者公司的npm服务器,使用nrm快速切换源是很必要的。 1.安装nrm 行执下面命令,全局安装nrm: npm install -g nrm 2 阅读全文
posted @ 2021-04-30 14:16 居无常 阅读(85) 评论(0) 推荐(0) 编辑