Michael Khaikin
Michael Khaikin

Reputation: 133

Unable to install n in order to update node.js

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 [email protected]: 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

Upvotes: 10

Views: 12199

Answers (1)

Piyush Jain
Piyush Jain

Reputation: 187

n is supported on macOS, Linux, including with Windows Subsystem for Linux, and various other unix-like systems. n does not work in native shells on Microsoft Windows (like PowerShell), or Git for Windows BASH, or with the Cygwin DLL.

Upvotes: 10

Related Questions