2016-12-23 1 views
-1

내가이 명령 시도 :우분투 16.04에 npm 3.10.8을 설치하는 방법은 무엇입니까?

npm install [email protected] 

을하고 나는이 오류가 발생했습니다 :

npm ERR! Linux 4.4.0-21-generic

npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "[email protected]"

npm ERR! node v4.2.6

npm ERR! npm v3.5.2

npm ERR! code ECONNRESET

npm ERR! network tunneling socket could not be established, cause=socket hang up

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! /home/user/npm-debug.log

+0

로 이동합니다. 여기에 붙여 넣지 마십시오. – GeekAb

답변

-1

내가 사용하는 사람은 당신이

$ sudo apt-get install python-software-properties 
$ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - 
$ sudo apt-get install nodejs 
$ node -v 
$ npm -v 

이 아래의 코드를 실행할 수 있습니다 nodejs에서 당신 가셔야합니다. , /home/user/npm-debug.log http://pastebin.com/index.php에 추가 : 그것이 말하는 것처럼, 어떤 지원 요청과 함께 다음과 같은 파일을 포함하십시오 추가 Installing NodeJs

+0

어떻게 문제가 해결 될지 궁금합니다. – GeekAb

관련 문제