help icon indicating copy to clipboard operation
help copied to clipboard

Unsupported platform

Open elthombre opened this issue 3 years ago • 4 comments

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.

elthombre avatar Aug 22 '22 14:08 elthombre

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."

vcano5 avatar Aug 23 '22 15:08 vcano5

It states:

wanted {"os":"!win32"} (current: {"os":"win32","arch":"x64"})

What is "!win32" vs. "win32" ??

elthombre avatar Aug 24 '22 04:08 elthombre

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.

VoltrexKeyva avatar Aug 24 '22 16:08 VoltrexKeyva

ok

elthombre avatar Aug 25 '22 05:08 elthombre

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.

github-actions[bot] avatar Nov 28 '23 01:11 github-actions[bot]

Closing after no activity on this issue for 12 months.

github-actions[bot] avatar Dec 29 '23 01:12 github-actions[bot]

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?

OdDev26 avatar Apr 02 '24 07:04 OdDev26

What can I do?

Use NVM-W or install unix

deadpihto21 avatar Apr 02 '24 14:04 deadpihto21