Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve "Unsupported platform for [email protected]"

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

**npm ERR!** notsup Valid OS:    linux
**npm ERR!** notsup Valid Arch:  any
**npm ERR!** notsup Actual OS:   darwin
**npm ERR!** notsup Actual Arch: x64
like image 859
bat Avatar asked Oct 28 '25 08:10

bat


1 Answers

This is possibly due to the dev package which gets installed with npm and this problem generally occurs with Mac OS.

Run the below command to remove the dev package.

npm uninstall dev --save

I hope I'm able to help with this answer.

like image 69
Pratap Sharma Avatar answered Oct 29 '25 23:10

Pratap Sharma