【发布时间】:2019-07-23 12:59:09
【问题描述】:
尝试运行npm install -g "something"。但是我收到了这个错误。
我正在使用 Windows 7:
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/yarn failed, reason:
getaddrinfo ENOTFOUND example.com example.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! C:\Users\User\AppData\Roaming\npm-cache\_logs\2019-03-
01T13_13_42_425Z-debug.log
当我在 Chrome https://registry.npmjs.org/yarn 上打开此 URL 时,我看到了文件内容
谁能帮我解决这个问题?
【问题讨论】:
标签: node.js windows npm npm-install