Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EBADPLATFORM - Unsupported platform for [email protected]

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
like image 460
coco Avatar asked Nov 14 '18 06:11

coco


1 Answers

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.

like image 69
hypers Avatar answered Oct 17 '22 15:10

hypers