安装 'create-react-native-app' npm 时出错



我在安装 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:UserskrishnaAppDataRoamingnpm-cache_logs2017-11-14T08_10_48_970Z-debug.log  

尝试删除我正在使用的任何代理,但仍然收到相同的错误。

C:             
λ npm -v        
5.5.1           
C:             
node -v       
v8.9.1          

如果需要更多信息,请告诉我。谢谢

它得到了一个错误的代理,我之前没有意识到。
我在公司网络下,因此添加了代理"genproxy.corporatename.com:8080"的全名来代替"genproxy:8080"。
工作正常!!

相关内容

  • 没有找到相关文章