2017-09-06 42 views
0

我想我的Windows 10操作系统,得益于node.js的命令提示,命令上更新节点:更新节点:我的操作系统不兼容

npm install -g n

,但它给了我这个错误:

C:\Windows\System32>npm install -g n npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "n" npm ERR! node v0.12.2 npm ERR! npm v2.7.4 npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported npm ERR! notsup Not compatible with your operating system or architecture: [email protected] 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! Please include the following file with any support request: npm ERR! C:\Windows\System32\npm-debug.log

你知道会发生什么吗?

+0

'NPM安装-g n,其中该命令npm',你要更新NPM,而不是节点本身。不能更新通过NPM节点,你必须通过安装程序或['nvm'(https://github.com/creationix/nvm)安装不同版本。在Windows更新 –

+0

简单的方法是从nodejs.org下载的二进制文件,并通过双击安装。 –

回答

相关问题