解决npm很慢

$ npm install -g cnpm --registry=https://registry.npm.taobao.org
$ npm config set registry https://registry.npm.taobao.org
$ cnpm install <module-name>

(整完发现cnpm还没直接npm快?????

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

yarn:

npm install -g yarn
yarn add <module-name>

yarn config set registry https://registry.npm.taobao.org
yarn config set registry https://registry.yarnpkg.com

posted on 2020-08-30 22:50  HolaWorld  阅读(148)  评论(0编辑  收藏  举报

导航