2016-06-10 2 views
0

npm-debog.log 파일의 일부 아래에 붙여 넣었습니다. 반응식 네이티브 공식 사이트에서 시작하기 guid의 지시 사항을 따른 후 반응하는 네이티브 init AwesomeProject를 수행했습니다. 오랜 시간 동안 명령 프롬프트가 중단 된 상태에서 다음 오류가 발생했습니다. 노드 v.4.4.5, npm v2.13.0, react-native-cli v1.0.0 있습니다.Windows의 'init'새 프로젝트에서 네이티브 던지기 오류가 발생했습니다.

This will walk you through creating a new React Native project in D:\Mobile_app_ 
dev_workspace\AwesomeProject 
Installing react-native package from npm... 

npm WARN peerDependencies The peer dependency [email protected] included from react-n 
ative will no 
npm WARN peerDependencies longer be automatically installed to fulfill the peerD 
ependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it 
explicitly. 
npm ERR! fetch failed https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-1.0.0 
.tgz 
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 103.2 
45.222.162:443 
npm ERR! fetch failed https://registry.npmjs.org/babel/-/babel-5.8.38.tgz 
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 103.2 
45.222.162:443 
npm WARN optional dep failed, continuing [email protected] 
npm ERR! fetch failed https://registry.npmjs.org/rimraf/-/rimraf-2.5.2.tgz 
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 103.2 
45.222.162:443 
npm ERR! fetch failed https://registry.npmjs.org/cookie-parser/-/cookie-parser-1 
.3.5.tgz 
npm WARN retry will retry, error on last attempt: Error: connect ETIMEDOUT 103.2 
45.222.162:443 
npm WARN optional dep failed, continuing [email protected] 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Ronald\\AppData\ 
\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "--save-ex 
act" "react-native" 
npm ERR! node v4.4.5 
npm ERR! npm v2.13.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 settin 
gs. 
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!  D:\Mobile_app_dev_workspace\AwesomeProject\npm-debug.log 

`npm install --save --save-exact react-native` failed 
+0

네트워크 문제 같습니다. 프록시를 받고 있습니까? –

+0

나는 프록시가 아닙니다. 오픈 DNS를 사용합니다. 그러나 그것을 비활성화 한 후에도 여전히 동일한 오류 메시지가 표시됩니다. 운이 전혀 없습니다. 공식 문서에 언급 된대로 '시작하기'단계가 모두 끝났습니다. 파이썬 버전은 2.7.11입니다. 나는 Windows 7 64 비트 컴퓨터를 사용합니다. 심지어 바이러스 백신의 실시간 보호 기능을 해제하고 시도했지만 운이 없었습니다. – Ronald

답변

0

Windows에서 react-native를 사용하는 npm의 이전 버전에는 문제가 있습니다. npm upgrade [email protected]을 실행 한 다음 명령을 다시 실행하십시오.

관련 문제