【发布时间】:2017-11-15 20:47:17
【问题描述】:
我在安装create-react-native-app 应用程序时遇到了这个问题
npm install -g create-react-native-app
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/create-react-native-app failed, reason: getaddrinfo ENOTFOUND genproxy genproxy: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\krishna\AppData\Roaming\npm-cache\_logs\2017-11-14T08_10_48_970Z-debug.log
我已尝试删除我正在使用的任何代理,但仍然遇到相同的错误。
C:\
λ npm -v
5.5.1
C:\
node -v
v8.9.1
如果需要更多信息,请告诉我。 谢谢
【问题讨论】:
-
也许你应该粘贴一个完整的日志,终端日志在最后两行引用。
-
@Eduard 谢谢,Complete 没有添加更多信息,所以我在这里只放了终端日志。我试图解决它。找到了解决方案。
标签: node.js react-native npm