(一)需要

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

(二)步骤

1、代理置为空

npm config set proxy nullnpm 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 

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