I tried installing n using the simple command, when I hit enter I got an error
$ 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