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
EBADPLATFORM - Unsupported platform for [email protected]
Asked Answered
Possible duplicate of Unsupported platform for [email protected]: wanted {"os":"linux","arch":"any"} –
Turnstile
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.
Try downgrading npm by running npm install [email protected] --force
, worked for me !
© 2022 - 2024 — McMap. All rights reserved.