PS C:\WINDOWS\system32> npm -v
6.0.0-next.0
PS C:\WINDOWS\system32> node -v
v6.10.1
PS C:\WINDOWS\system32> npm install npm@latest -g
C:\Users\82511\AppData\Roaming\npm\npm -> C:\Users\82511\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
C:\Users\82511\AppData\Roaming\npm\npx -> C:\Users\82511\AppData\Roaming\npm\node_modules\npm\bin\npx-cli.js
+ npm@5.8.0
added 9 packages from 8 contributors, removed 16 packages and updated 30 packages in 35.688s
PS C:\WINDOWS\system32> npm -v
5.8.0
node官方命令不适合Windows平台,建议重新安装在原目录下
C:\Users\82511>where node
C:\Program Files\nodejs\node.exe
网友评论