yarn/npm 设置镜像地址

注意

如果开发 electron 桌面软件,需要设置以下两个镜像地址

disturlelectron_mirror

如果用到了 node-sass 需要设置以下一个镜像地址

sass_binary_site

yarn

yarn config set registry https://registry.npm.taobao.org -g 
yarn config set disturl https://npm.taobao.org/dist -g 
yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ -g 
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ -g 
yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/ -g

npm

npm config set registry https://registry.npm.taobao.org 
npm config set disturl https://npm.taobao.org/dist 
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/ 
npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ 
npm config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs/

yarn/npm 设置镜像地址

上一篇:[chimerax-users] scale_bar


下一篇:Scala03-2021.7.10-基础篇-print