切换npm源
临时使用
npm --registry https://registry.npm.taobao.org install xxx
设置淘宝源
npm config set registry https://registry.npm.taobao.org
设置官方源
npm config set registry https://registry.npmjs.org/
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
查看npm源地址
npm config get registry
清除npm安装缓存
npm cache clean --force
npm 发布包
PS:有疑问或建议请留言~~
领取专属 10元无门槛券
私享最新 技术干货