color-thief icon indicating copy to clipboard operation
color-thief copied to clipboard

Facing error when 'npm install'

Open SSk123 opened this issue 4 years ago • 10 comments

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.

SSk123 avatar Dec 24 '20 07:12 SSk123

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.

Britt00 avatar Jan 02 '21 14:01 Britt00

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

RoyalIcing avatar May 04 '21 01:05 RoyalIcing

@lokesh can you fix it?

brightsider avatar Oct 11 '21 05:10 brightsider

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

dreamerblue avatar Nov 29 '21 07:11 dreamerblue

That needs fixing. @lokesh

taejs avatar Jan 06 '22 10:01 taejs

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

aChudinov avatar Jan 11 '22 15:01 aChudinov

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

erisontavares avatar Jan 17 '22 12:01 erisontavares

Need to publish quantize @lokesh

coldrainc avatar Mar 29 '22 09:03 coldrainc

still having this issue @lokesh

forgowhisky avatar Jun 20 '22 19:06 forgowhisky

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

pioug avatar Sep 03 '22 04:09 pioug