执行npm -g install n报错
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@4.1.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 ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2019-06-13T09_41_18_904Z-debug.log
解决方式
运行npm -g install n --force