EBADPLATFORM on install (for [email protected])
- Electron-Builder Version: N/A (source)
- Node Version: 18.17.1
$ npm i
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin"} (current: {"os":"win32"})
npm ERR! notsup Valid os: darwin
npm ERR! notsup Actual os: win32
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.
@dr-vortex Did you ever find a solution to this?
@RerdRice Unfortunately not.
@mmaietta Any updates on this?
Are you trying to install dependencies after checking out the repo? I think that's what you mean by Electron-Builder Version: N/A (source)?
If so, you'll need to retry with using pnpm install instead of npm
Keep in mind I'm new at this, but I switched to using webpack for my pre-build and this issue has gone away. Sorry I don't have anything specific, its been a while since I got around this error. @james-pre, if you want we can talk more, maybe there's something in my setup that would help.