装模块的时候不让装
npm install -g n
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "H:\\dev\\node\\node.exe" "C:\\Users\\liuan\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "n"
npm ERR! node v11.9.0
npm ERR! npm v3.10.10
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@8.0.1: 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:\Users\liuan\npm-debug.log
不让装?
新增--force 硬装
npm install -g n --force