EBADPLATFORM - Unsupported platform for [email protected]
Asked Answered
G

2

7
npm ERR! code EBADPLATFORM

npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"linux","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! notsup Valid OS:    linux

npm ERR! notsup Valid Arch:  any

npm ERR! notsup Actual OS:   win32

npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2018-11-14T06_22_08_427Z-debug.log
Gormley answered 14/11, 2018 at 6:42 Comment(1)
Possible duplicate of Unsupported platform for [email protected]: wanted {"os":"linux","arch":"any"}Turnstile
I
1

For me this happened on Windows 10 (x64) while trying:

 npm install dev

It has inotify as a dependency which itself works on Linux only. It's sad so many packages depend on dev which means these can't be cross-platform anymore.

I was able to remove dev from dependencies in package.json and still run the package I was interested in.

Indigestive answered 29/5, 2021 at 13:21 Comment(0)
U
0

Try downgrading npm by running npm install [email protected] --force, worked for me !

Ulda answered 8/11, 2019 at 4:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.