安装nodejs版本模块报错notsup Unsupported platform for n

使用npm install -g n报错

如果出现npm ERR! notsup Unsupported platform for n@6.7.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})

在命令后面加上 --force 重新运行就行了