npm使用

清空缓存
npm cache clean --force

安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org(一直报错)

找回缺失的包

npm install

 

临时使用TB

npm --registry https://registry.npm.taobao.org install express

 

持久使用TB

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

查看是否成功

npm config get registry

恢复使用

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

 

posted on 2020-05-08 12:48  liucuiqiang  阅读(112)  评论(0编辑  收藏  举报

导航