2017-05-11 3 views
0

npm으로 express-generator (또는 angular-cli)를 설치하려고 시도했지만 성공하지 못했습니다. 그것은 아래와 같은 오류가 : 프록시 뒤에있는 경우npm을 사용하여 nodejs 설치

... 
30 verbose stack Error: connect ETIMEDOUT 151.101.40.162:443 
30 verbose stack  at Object.exports._errnoException (util.js:1022:11) 
30 verbose stack  at exports._exceptionWithHostPort (util.js:1045:20) 
30 verbose stack  at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14) 
31 verbose cwd E:\nodejs\hello 
32 error Windows_NT 6.1.7601 
33 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express-generator" 
34 error node v7.3.0 
35 error npm v3.10.10 
36 error code ETIMEDOUT 
37 error errno ETIMEDOUT 
38 error syscall connect 
39 error network connect ETIMEDOUT 151.101.40.162:443 
40 error network This is most likely not a problem with npm itself 
40 error network and is related to network connectivity. 
40 error network In most cases you are behind a proxy or have bad network settings. 
40 error network 
40 error network If you are behind a proxy, please make sure that the 
40 error network 'proxy' config is set properly. See: 'npm help config' 
41 verbose exit [ 1, true ] 
+0

흠 ... 왜 Node.js를 설치하는 NPM을 사용할 수 있도록 기대? –

+0

방화벽이 설치된 경우 프록시 (.npmrc 파일)를 설정해야 할 수 있습니다. – Santosh

+0

http://blog.teamtreehouse.com/install-node-js-npm-windows –

답변

0

에서, '프록시'설정이 제대로 설정되어 있는지 확인하십시오. 참조 : 'npm help config'

Windows 방화벽이 설치된 경우 npm 레지스트리에 연결하기 위해 프록시를 사용해야합니다.

두 가지 방법

관련 문제