npm install -g n 报错

为了更新nodejs安装n模块,但是报了如下错误,这是为什么呢?

C:\Windows\System32>npm i -g n

npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:\\node.exe" "C:\\node_modules\\npm\\bin\\npm-cli.js" "i" "-g"

n"

npm ERR! node v6.11.0

npm ERR! npm  v3.10.10

npm ERR! code EBADPLATFORM


npm ERR! notsup Unsupported platform for n@2.1.7: wanted {"os":"!win32","arch":

any"} (current: {"os":"win32","arch":"x64"})

npm ERR! notsup Valid OS:    !win32

npm ERR! notsup Valid Arch:  any

npm ERR! notsup Actual OS:   win32

npm ERR! notsup Actual Arch: x64


npm ERR! Please include the following file with any support request:

npm ERR!     C:\Windows\System32\npm-debug.log


ITMISS
浏览 4263回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript