lokesh / color-thief

Grab the color palette from an image using just Javascript. Works in the browser and in Node.
https://lokeshdhakar.com/projects/color-thief/
MIT License
12.67k stars 1.31k forks source link

Facing error when 'npm install' #202

Closed SSk123 closed 1 month ago

SSk123 commented 3 years ago

I did rm-rf node_nodules and npm install in my root directory, I am facing this issue in colorthief package.

image

Within node_modules/colorthief/package.json there is a dependency getting loaded "quantize": "github:lokesh/quantize" which seems to be causing this error.

I am using node -v v12.16.1 and "colorthief": "^2.3.2" Any help in resolution is highly appreciated.

Britt00 commented 3 years ago

I had the same issue. Currently using node v12.18.3. By downgrading to "colorthief": "^2.2.0" everything worked again. I did not try any other versions.

RoyalIcing commented 3 years ago

This also caused a problem for me. I believe publishing the fork lokesh/quantize as its own npm package would solve the problem, instead of referencing from github. I also had to downgrade to 2.2.0

brightsider commented 3 years ago

@lokesh can you fix it?

dreamerblue commented 3 years ago

Please publish a npm package instead of using github:lokesh/quantize. It will cause issues.

taejs commented 2 years ago

That needs fixing. @lokesh

aChudinov commented 2 years ago

@lokesh Now it's a critical issue https://github.blog/2021-09-01-improving-git-protocol-security-github/

erisontavares commented 2 years ago

we are also facing the same issue when deploying, npm install fails on the server because of this dependency

coldrainc commented 2 years ago

Need to publish quantize @lokesh

forgowhisky commented 2 years ago

still having this issue @lokesh

pioug commented 2 years ago

I created a monorepo with colorthief including some (abandoned) dependencies that needed an update too. It's not super classy to share it here but we are losing so much time collectively trying to fix this. Please head over to https://github.com/pioug/colorsuite. If anyone is interested in keeping the project/repository alive, ping me there, I'll add you as a maintainer.

npm install colorthief@npm:@pioug/colorthief
lokesh commented 1 month ago

The install issues with the quantize dep were resolved in early 2023. Sorry for the hiccups.

Fixed here: https://github.com/lokesh/color-thief/releases/tag/v2.4.0 Get the latest release: https://github.com/lokesh/color-thief/releases