无法安装react-native,同时安装获取“npm ERR!code ETIMEDOUT”

时间:2016-02-15 08:41:18

标签: npm react-native

我正在尝试初始化react-native的Awesome Project。但是当我尝试运行“react-native init AwesomeProject”命令时,它会给我以下错误。

Installing react-native package from npm...

npm ERR! Darwin 15.2.0
npm ERR! argv "/usr/local/Cellar/node/5.6.0/bin/node" "/usr/local/bin/npm" "install" "--save" "react-native"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect

npm ERR! network connect ETIMEDOUT 103.245.222.162:443
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is 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! Please include the following file with any support request:
npm ERR!     /Users/rushabh/AwesomeProject/npm-debug.log

`npm install --save react-native` failed

我在稳定的互联网连接上。我安装了最新的节点和npm。 请帮忙。

0 个答案:

没有答案