代理错误有没有软件包没有下载?

时间:2020-07-15 08:18:59

标签: proxy ionic3

我正在遵循这三个命令,但仍然导致错误。

#npm config set https-proxy http://proxy.company.com:8080
#npm config set http_proxy=http://domain:8080

在执行这些命令之前,先运行了两个命令。

#npm config set proxy http://domain:8080
#npm rebuild node-sass
#npm install
#ionic serve

Error:
```none
Admins-Mac-mini-5:~ techwinlabs$ sudo npm install -g cordova ionic
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to http://registry.npmjs.org/cordova failed, 
reason: getaddrinfo ENOTFOUND proxy.company.com proxy.company.com:8080
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network 
settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/techwinlabs/.npm/_logs/2020-07-15T08_06_22_790Z-debug.log

0 个答案:

没有答案