在Windows 7 64位更新node.js

如何更新Windows 7 64位操作系统中的node.js?

我尝试着名的:

npm cache clean -f npm install -gn n stable 

但是在npm install -gn它失败了,提示如下错误:

 C:\Windows\system32>npm install -gn 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: n@1.2 .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 

请提出解决scheme。 我怀疑这可能是由于64位版本的操作系统。

感谢致敬。

您可以通过执行Windows安装程序来更新最新的node.js版本。

n在Windows上不起作用,因为它基本上是一个巨大的(bash)shell脚本 。