执行:npm install 时,报错:If you are behind a proxy, please make sure that the ‘proxy’ config is set prope

文章目录

          • 一、问题:
          • 二、解决:


一、问题:

执行:npm install 时,报错:If you are behind a proxy, please make sure that the ‘proxy’ config is set prope_第1张图片

二、解决:

检查 NPM 代理设置,删除掉 NPM 代理设置

#检查 NPM 代理设置
npm config get proxy

#删除掉 NPM 代理设置
npm config rm proxy  
npm config rm https-proxy

#再次检查 NPM 代理设置
npm config get proxy

#再次执行安装命令
...

执行:npm install 时,报错:If you are behind a proxy, please make sure that the ‘proxy’ config is set prope_第2张图片

你可能感兴趣的:(软件与插件,npm,前端,node.js)