npm设置和查看仓库源

//从淘宝仓库源下载
npm --registry=https://registry.npm.taobao.org install
// 安装cnpm命令,不会改变npm的源
npm install -g cnpm --registry=https://registry.npm.taobao.org

//使用
cnpm install
//设置淘宝源
npm config set registry=registry=https://registry.npm.taobao.org

//设置公司的源
npm config set registry=http://127.0.0.1:3033

//查看源
npm config get registry
//恢复源
npm config set registry=https://registry.npmjs.org/

 

posted @ 2022-08-25 15:06  之鹿喵  阅读(489)  评论(0编辑  收藏  举报