常用的npm源地址
Code Block |
---|
npm ---------- https://registry.npmjs.org/
yarn --------- https://registry.yarnpkg.com/
tencent ------ https://mirrors.cloud.tencent.com/npm/
cnpm --------- https://r.cnpmjs.org/
taobao ------- https://registry.npmmirror.com/
npmMirror ---- https://skimdb.npmjs.com/registry/ |
npm配置:
...
1. npm默认仓库registry.npmmirror.com访问不到
临时设置node源
cnpm cache clean --force && cnpm config set registry https://registry.npmjs.org &&
cnpm config set registry https://registry.npm.taobao.org &&
npm cache clean --force && npm config set registry https://registry.npmmirror.com
npm install gitbook-plugin-search-pro --registry=https://registry.npmmirror.com
2.拉取不到国外github资源
临时设置代理
export HTTPS_PROXY=https://192.168.1.106:7890 && export http_proxy=https://192.168.1.106:7890
npm config set proxy https://192.168.1.106:7890