2014-07-18 3 views
19

Windows 7 64 비트 OS에서 node.js를 업데이트하는 방법은 무엇입니까?Windows 7에서 node.js 업데이트 64 비트

npm cache clean -f 
npm install -g n 
n stable 

을하지만 npm install -g n에 다음과 같은 오류주고 실패 :

나는 유명한 시도

C:\Windows\system32>npm install -g n 
npm http GET https://registry.npmjs.org/n 
npm http 304 https://registry.npmjs.org/n 
npm ERR! notsup Unsupported 
npm ERR! notsup Not compatible with your operating system or architecture: [email protected] 
.9 
npm ERR! notsup Valid OS: !win32 
npm ERR! notsup Valid Arch: any 
npm ERR! notsup Actual OS: win32 
npm ERR! notsup Actual Arch: ia32 

npm ERR! System Windows_NT 6.1.7601 
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File 
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n" 
npm ERR! cwd C:\Windows\system32 
npm ERR! node -v v0.10.28 
npm ERR! npm -v 1.4.9 
npm ERR! code EBADPLATFORM 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  C:\Windows\system32\npm-debug.log 
npm ERR! not ok code 0 

해결책을 제시하세요. OS의 64 비트 버전 때문일 수 있습니다.

감사합니다.

답변

24

here에서 최신 node.js 버전의 Windows 설치 프로그램을 실행하여 간단히 업데이트 할 수 있습니다.

n은 기본적으로 giant (bash) shell script이기 때문에 Windows에서 작동하지 않습니다.

관련 문제