2016-06-22 12 views
4

NodeJs를 설치하는 Windows 7에 browser-sync를 설치하려고합니다. 당신은 당신의 환경 변수에 문제가있을 수 있습니다Windows 7에 browser-sync를 설치할 수 없습니다.

C:\Users\nikhil.wagh>npm install -g browser-sync 
npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ 
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "browser-sync" 
npm ERR! node v4.4.5 
npm ERR! npm v2.15.5 
npm ERR! code ECONNREFUSED 
npm ERR! errno ECONNREFUSED 
npm ERR! syscall connect 

npm ERR! Error: connect ECONNREFUSED 23.235.39.162:443 
npm ERR!  at Object.exports._errnoException (util.js:870:11) 
npm ERR!  at exports._exceptionWithHostPort (util.js:893:20) 
npm ERR!  at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1061:14) 
npm ERR! { [Error: connect ECONNREFUSED 23.235.39.162:443] 
npm ERR! code: 'ECONNREFUSED', 
npm ERR! errno: 'ECONNREFUSED', 
npm ERR! syscall: 'connect', 
npm ERR! address: '23.235.39.162', 
npm ERR! port: 443 } 
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the 
npm ERR! 'proxy' config is set properly. See: 'npm help config' 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\Users\nikhil.wagh\npm-debug.log 
+0

당신이 관리자 권한으로 명령 프롬프트를 실행 했습니까? – Keerthivasan

답변

0

:하지만 아래의 오류를 얻고있다 -

당신은 당신의 환경 변수에 문제가 :

Control panel -> System -> Advanced System Settings -> Advanced -> Environment variables. 

환경 변수 검색 PATH 변수.

C:\Users\[your username]\AppData\Roaming\npm 

C:\Program Files (x86)\nodejs\ 

확인 당신이 PATH 변수에이 개 경로와

C:\Users\[your username]\AppData\Roaming\npm is beforeC:\Program Files (x86)\nodejs\ 

소스가 있어야합니다 : PATH 변수 반드시 다음과 같은 경로가 포함 - npm installation problem in windows

관련 문제