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

(一)需要

在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 

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理