解决npm安装速度慢的方法

执行一遍即可(yarn同理)

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

你可能感兴趣的:(Other)