关于npm指令以及淘宝镜像的总结,方便实用

1.如何去查看npm 的地址

npm config get registry

2.查看npm的版本

npm -v

3.npm设置淘宝镜像

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

4.取消淘宝镜像

npm config delete registry

5.升级npm版本

npm install -g npm

6.升级npm到指定的版本

npm -g install npm@版本号

7.下载cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

猜你喜欢

转载自blog.csdn.net/qq_44890362/article/details/122319812
今日推荐