nodejs用代码更新版本出现问题

我直接在命令行输入npm install -g n
一直报这种错误

npm ERR! Windows_NT 6.1.7601

npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"

npm ERR! node v4.6.1

npm ERR! npm  v2.15.9

npm ERR! code EBADPLATFORM


npm ERR! notsup Unsupported

npm ERR! notsup Not compatible with your operating system or architecture: n@2.1.4

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:\Users\wuzh\npm-debug.log

求解???

温温酱
浏览 848回答 1
1回答

萧十郎

Unfortunately n is not supported on Windows yet. If you're able to make it work, send in a pull request!n不支持win平台
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript