赞
踩
1、npm set strict-ssl false
2、设置代理
npm config set proxy http://xxx:xxx@openproxy.ali.com:8080
yarn config set strict-ssl false
yarn install
npm install -g yarn@1.22.19 --registry=https://registry.npm.taobao.org
npm config get
查看和设置镜像
npm get registry
npm config set registry https://registry.npmjs.org/
npm config set ELECTRON_MIRROR “https://npm.taobao.org/mirrors/electron/”
npm config get ELECTRON_MIRROR
npm config delete ELECTRON_MIRROR
设置代理
npm config set proxy http://server:port
npm config set https-proxy http://server:port
查看代理
npm config get proxy
npm config get https-proxy
删除代理
npm config set proxy null
npm config set https-proxy null
yarn设置代理
yarn config set proxy http://xxx:xxx@openproxy.ali.com:8080
yarn删除代理
yarn config delete proxy
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。