d3-sankey-diagram icon indicating copy to clipboard operation
d3-sankey-diagram copied to clipboard

fsevents dependency prohibits installation on linux

Open jguddas opened this issue 4 years ago • 1 comments

$ npm install d3-sankey-diagram

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

The use of fsevents is unclear and since it was added in conjunction with the addition of prettier, it is probably not needed as a dependency.

https://github.com/ricklupton/d3-sankey-diagram/blame/d8a126e9fc2bf4c4b98cc444544068bbd6c4d283/package.json#L37

jguddas avatar Dec 12 '20 17:12 jguddas

I had the same issue installing on Windows.
I was able to use an earlier version (npm install [email protected]) which didn't have this dependency.

Possibly suggest to use the cross-platform library instead of fsevents, called Chokidar - https://github.com/paulmillr/chokidar

peterikladious avatar Jan 27 '21 21:01 peterikladious