2016-07-30 2 views
-1

npm에서 패키지를 설치할 수 없습니다.NodeJS NPM 문제

npm ERR! Windows_NT 6.3.9600 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" 
npm ERR! node v6.3.1 
npm ERR! npm v3.10.3 
npm ERR! code ECONNRESET 

npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80 
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!  E:\myApps\mobileApp\shym\npm-debug.log 

NPM의 설정은 프록시를 얻을 -> 널

NPM 설정 GET HTTPS 프록시 -> 널

NPM의 설정이 경우 레지스트리를 얻을 -> 레지스트리 = "https://registry.npmjs.org/"

+1

인터넷 연결에 문제가있는 것으로 보입니다. – alexi2

+0

http://stackoverflow.com/questions/41670317/npm-command-issue –

답변

0

당신은해야합니다 뒤에 의존성을 설치하기위한 프록시 당신은 다음을 수행하여 프록시에 연결하도록 npm을 구성해야합니다.

npm config set proxy http://proxy.example.com:3000 
npm config set https-proxy https://proxy.example.com:3000` 
터미널에서

.

+0

http://stackoverflow.com/questions/41670317/npm-command-issue –