ricklupton / d3-sankey-diagram

Sankey diagram for d3
https://ricklupton.github.io/d3-sankey-diagram
MIT License
107 stars 35 forks source link

fsevents dependency prohibits installation on linux #27

Open jguddas opened 3 years ago

jguddas commented 3 years ago
$ npm install d3-sankey-diagram

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.2.1: 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

peterikladious commented 3 years ago

I had the same issue installing on Windows.
I was able to use an earlier version (npm install d3-sankey-diagram@0.7.3) which didn't have this dependency.

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