NPM切换

因为发布NPM插件的原因,经常要用到NPM源的切换,这里快捷记录一下
查看当前镜像
1 | npm get registry |
设置淘宝镜像
1 | npm config set registry http://registry.npm.taobao.org/ |
恢复原先镜像
1 | npm config set registry https://registry.npmjs.org/ |
- 本文标题:NPM切换
- 本文作者:sonder
- 创建时间:2020-08-05 15:49:57
- 本文链接:https://sonderss.github.io/2020/08/05/NPM切换/
评论