d3-sankey-diagram
d3-sankey-diagram copied to clipboard
fsevents dependency prohibits installation on linux
$ 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
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