EBADPLATFORM when npm install --save-dev msw on Windows 10
See original GitHub issueDescribe the bug
Running npm install --save-dev msw
on Windows 10 produces an error
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: undefined
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64
Environment
msw: 0.27.1
nodejs: 15.12.0
npm: 7.6.3
To Reproduce
Steps to reproduce the behavior:
- Run
npm install --save-dev msw
- See error
Expected behavior
msw
is susscessfully installed on Windows 10 environment
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
npm install error (code EBADPLATFORM) - node.js
This worked effortless for me on Windows: Go to project's "package-lock.json" file.
Read more >open-draft - Bountysource
Running npm install --save-dev msw on Windows 10 produces an error npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for fsevents@2.3.2: ...
Read more >Error while updating the instance - Google Groups
npm install. npm ERR! code EBADPLATFORM ... npm install --save-dev acorn@^6.0.0 html-webp. ... _extensions..js (internal/modules/cjs/loader.js:712:10).
Read more >[Solved]-npm install error (code EBADPLATFORM)-node.js
I had this same issue on my dev machine (Win 10 x64). I had no intention of running or using fsevents locally. I...
Read more >npm install error fsevents in Ohter Mac Platforms - Medium
When I tried to run npm install, it gave me this error. error code EBADPLATFORM. error notsup Unsupported platform for fsevents@1.1.3: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To clarify: that warning shouldn’t affect your experience with MSW. It’s stated in the message that
fsevents
is an optional dependency. I don’t see anything we can do on the library’s side, it’s the wayfsevents
behaves, not being our direct dependency.@kettanaito sure!
On machine with nodejs
12.3.1
result wasOn machine with
nodejs 15.12.0
(suprisingly):