摘要: 解决方案 npm config set registry http://registry.npm.taobao.org/ 将npm默认设置为淘宝镜像地址 发布包 当你想发布自己的包时,需要将地址修改回来 npm config set registry https://registry.npmjs.o 阅读全文
posted @ 2021-07-29 16:58 沐子馨 阅读(1719) 评论(0) 推荐(0) 编辑
摘要: 在我们写完一个应用程序后,需要发布到npm上,大多数人可能仅仅使用 npm publish 就完成了,我这里讲一下如何更好的发布包。 registry 在下载包的时候,很多人喜欢设置 taobao 镜像,因为 npm 仓库 服务器 在国外,下载速度真是急死个人,淘宝镜像每10分钟同步一次 Npm 上 阅读全文
posted @ 2021-07-29 15:28 沐子馨 阅读(4225) 评论(0) 推荐(0) 编辑