npm设置淘宝源
1
2
3
41.在项目根目录下新建 .npmrc
写入:
registry = https://registry.npm.taobao.org
2. npm config set registry https://registry.npm.taobao.orgnpm发布包 报错
1
2
3
4no_perms Private mode enable, only admin can publish this module: xxx
修改npm源为 https://registry.npmjs.org 就行了
npm config set registry https://registry.npmjs.org