关于前端:Day-99100proxy-config-is-set-properly-See-npm-help-config

3次阅读

共计 498 个字符,预计需要花费 2 分钟才能阅读完成。

(一)需要

在 npm install 时,报错 'proxy' config is set properly. See: 'npm help config',以后的环境是 Mac M1 芯片的环境,查了很久,终于有有眉目的计划了,分享给大家。

(二)步骤

1、代理置为空

npm config set proxy null
npm config set https-proxy null
# npm config set proxy false        革除 npm 中的代理

2、革除 npm 中的缓存

npm cache clean --force            革除 npm 中的缓存 

3、应用淘宝源

# npm config set registry http://registry.cnpmjs.org/
npm config set  registry  http://registry.npm.taobao.org/
# npm install --force --registry=https://registry.npm.taobao.org

4、应用 cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org 

以上是我,收集到的解决这个问题的计划,心愿对你有所帮忙~

正文完
 0