tailwind-nextjs-starter-blog icon indicating copy to clipboard operation
tailwind-nextjs-starter-blog copied to clipboard

Remove Sharp from package json

Open technolaaji opened this issue 3 years ago • 3 comments

When installing node modules if you have node version beyond 12 then it will not install

When removing the sharp package from package.json and remove the package lock and node_modules folder it works

I did this while migrating from V0 to V1, it wouldn't install any dependencies till I removed sharp

technolaaji avatar Jul 04 '22 20:07 technolaaji

Strange, maybe it's some kind of dependency issue when you were migrating due to conflicting versions of sharp or other packages. A fresh install works fine.

timlrx avatar Jul 05 '22 02:07 timlrx

Actually what I did is that I did a fresh repo with the updates on it then migrate the bits I wanted from V0

in other words: it was a fresh install and the fresh install on its own made this issue (I used degit to get V1, pliny install downloaded the repo but it wouldn't compile it)

technolaaji avatar Jul 05 '22 03:07 technolaaji

FWIW, I had that error with node v14.18.2 --> I just bumped to v16.16.0 and had no issues.

creativesully avatar Aug 12 '22 18:08 creativesully

Removed sharp from the default package. If someone wants to self-host they can add it back in.

timlrx avatar Oct 24 '22 15:10 timlrx