help
help copied to clipboard
Unsupported platform
Details
I am trying to install an updated version and seeing the following:
44 verbose node v15.12.0
45 verbose npm v7.7.5
46 error code EBADPLATFORM
47 error notsup Unsupported platform for [email protected]: wanted {"os":"!win32"} (current: {"os":"win32","arch":"x64"})
48 error notsup Valid OS: !win32
48 error notsup Valid Arch: undefined
48 error notsup Actual OS: win32
48 error notsup Actual Arch: x64
49 verbose exit 1
Node.js version
v15.12.0
Example code
No response
Operating system
Edition Windows 10 Home Version 21H2 OS build 19044.1889
Scope
installation
Module and version
Not applicable.
Looks like you are trying to install n package But it is not supported on windows
"n is supported on macOS, Linux, including with Windows Subsystem for Linux, and various other unix-like systems."
It states:
wanted {"os":"!win32"} (current: {"os":"win32","arch":"x64"})
What is "!win32" vs. "win32" ??
It states that the n package wants any OS except win32 which stands for Windows, n is only supported on macOS, Linux, and Windows Subsystem for Linux (WSL).
I would recommend installing Node.js using the official installer which you can download from the official Node.js website.
If you want a Node.js version manager on Windows then you can install nvm-windows which is nvm for Windows.
ok
There has been no activity on this issue for 11 months. The help repository works best when sustained engagement moves conversation forward. The issue will be closed in 1 month. If you are still experiencing this issue on the latest supported versions of Node.js, please leave a comment.
Closing after no activity on this issue for 12 months.
I am experiencing a similar issue. When I run npm install I get the error below:
npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"!win32"} (current: {"os":"win32"}) npm ERR! notsup Valid os: !win32 npm ERR! notsup Actual os: win32
What can I do?