npm install 加速

终端执行

npm config set registry https://registry.npm.taobao.org
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs
npm config set electron_mirror https://npm.taobao.org/mirrors/electron
npm config set sqlite3_binary_host_mirror https://npm.taobao.org/mirrors/sqlite3
npm config set profiler_binary_host_mirror https://npm.taobao.org/mirrors/node-inspector
npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver

  

或者直接复制下面添加到C:\Users\Administrator\.npmrc文件中,保存即可!

registry https://registry.npm.taobao.org
sass_binary_site https://npm.taobao.org/mirrors/node-sass
phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs
electron_mirror https://npm.taobao.org/mirrors/electron
sqlite3_binary_host_mirror https://npm.taobao.org/mirrors/sqlite3
profiler_binary_host_mirror https://npm.taobao.org/mirrors/node-inspector
chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver

  

 

posted @ 2021-03-16 12:11  丿枫林晚丶  阅读(436)  评论(0编辑  收藏  举报