我在尝试安装 n 时收到以下错误,之前收到错误说我需要升级我的节点以运行 npm 命令。
错误如下:
PS C:\new-project> npm install -g n
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@7.3.0: 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 版本
PS C:\new-project> npm -v
6.9.0
节点版本
PS C:\new-project> node -v
v12.5.0