我嘗試使用簡單命令安裝 n,當我按 Enter 時出現錯誤
$ npm install -g n
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@8.0.0: wanted {"os":"!win32"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: !win32
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
uj5u.com熱心網友回復:
n 在 macOS、Linux 上受支持,包括用于 Linux 的 Windows 子系統和各種其他類 Unix 系統。n 在 Microsoft Windows(如 PowerShell)、Git for Windows BASH 或 Cygwin DLL 上的本機 shell 中不起作用。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/349756.html
