npm中的proxy问题(代理),导致无法下载依赖包:
npm config get proxy
npm config get https-proxy
注:如果返回值不是null,继续执行( (要确保两个返回值都是null才可以,否则就要执行下面的代码)
npm config set proxy null
npm config set https-proxy null
注:让别人把已经下好的node_moudles打包发给你,直接覆盖到相应的项目文件位置中,也可以解决。
npm中的proxy问题(代理),导致无法下载依赖包:
npm config get proxy
npm config get https-proxy
注:如果返回值不是null,继续执行( (要确保两个返回值都是null才可以,否则就要执行下面的代码)
npm config set proxy null
npm config set https-proxy null
注:让别人把已经下好的node_moudles打包发给你,直接覆盖到相应的项目文件位置中,也可以解决。