npm相关命令
#
npm- 淘宝镜像源 - npm
npm config set registry https://registry.npm.taobao.org --globalnpm config set disturl https://npm.taobao.org/dist --global
#
yarn- 淘宝镜像源 - yarn
yarn config set registry https://registry.npm.taobao.org --globalyarn config set disturl https://npm.taobao.org/dist --global yarn config get registryyarn config set registry 'https://registry.yarnpkg.com'
#
删除镜像npm config delete registrynpm config delete disturl
#
设置npm - 系统代理- win
npm config set proxy http://127.0.0.1:1080set http_proxy=http://127.0.0.1:1080;
- mac
npm config set proxy http://127.0.0.1:1087
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;