javascript - npm install -g n 報錯
怪我咯
怪我咯 2017-06-15 09:23:19
0
3
1029

為了更新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
怪我咯
怪我咯

走同样的路,发现不同的人生

全部回覆(3)
迷茫

一看就沒仔細的看文檔,n模組不支援windows系統。
https://www.npmjs.com/package/n
圖下邊括號的內容,自己翻一下。

学习ing

npm -install xxx -g // "xxx"表示的是你要裝的模組

学霸

n一般就是指你要下載的模組,例如jquery

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!