npm与cnpm切换使用

(一)npm与cnpm切换使用

 

1.设置使用淘宝cnpm

npm config set registry https://registry.npm.taobao.org

2.查看是否配置成功,成功后即可直接使用cnpm命令

npm config get registry

3.还原npm仓库

npm config set registry https://registry.npmjs.org
posted @ 2022-02-22 09:20  L_JL  阅读(295)  评论(0编辑  收藏  举报