npm ERR!由于代理设置,代码为ENOTFOUND

时间:2019-08-03 10:31:59

标签: angular7 npm-install

我尝试在终端中运行npm install,但是我得到了npm ERR!由于代理设置,代码ENOTFOUND。实际上,已在Chrome和命令提示符中禁用了代理设置。我该如何解决这个问题?

这是错误

  D:\FUSI\PMO FE Angular\PMO-FE-Angular>npm install
  npm WARN registry Using stale data from https://registry.npmjs.org/ 
  because the host is inaccessible -- are you offline?
  npm WARN registry Using stale data from https://registry.npmjs.org/ due 
  to a request error during revalidation.
  npm ERR! code ENOTFOUND
  npm ERR! errno ENOTFOUND
  npm ERR! network request to https://registry.npmjs.org/chart.js failed, 
  reason: getaddrinfo ENOTFOUND internet.indonesiapower.co.id 
  internet.indonesiapower.co.id: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!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2019-08- 
  03T10_23_44_438Z-debug.log

0 个答案:

没有答案