bchiang7 / v4

Fourth iteration of my personal website built with Gatsby
https://v4.brittanychiang.com/
MIT License
7.52k stars 3.72k forks source link

Issue with project installation #232

Open snoberkhanday opened 2 years ago

snoberkhanday commented 2 years ago

I'm having trouble with project installation

When I run npm i, it's showing me some error

"npm ERR! × Error: pngquant failed to build, make sure that libpng-dev is installed" Screenshot (169)

hichemfantar commented 2 years ago

Try deleting yarn.lock and package.lock. Delete node_modules folder. Finally rerun npm install.

snoberkhanday commented 2 years ago

It's still there. Why have you made this installation complex? It's still not working. Please help me out here.

hichemfantar commented 2 years ago

What node and npm versions are you running?

snoberkhanday commented 2 years ago

My node version is v16.15.1 My npm version is 8.11.0

hichemfantar commented 2 years ago

Npm install works fine for me on node v16.17.0 and npm v8.15.0

snoberkhanday commented 2 years ago

What do you suggest? Should I update my npm? I tried everything and nothing's working. 😑

jjlabajo commented 1 year ago

Hello, I just installed this repo and deployed it to my domain.

I also had this issue when I tried to clone it on my device, I fixed it by using the command: npm install --force

My portfolio is all good, this repo is so great and easy to use. You can check mine here: https://www.jjlabajo.com

Edamijueda commented 11 months ago

npm install --force @jjlabajo this solve it for me. Steps I took:

  1. Deleted the cloned project as I have messed a lot of things up.
  2. Cloned it from git again
  3. Deleted the yarn.lock file
  4. Run npm install -g gatsby-cli
  5. npm install --force
  6. npm start I was then able to view v4 project in my browser on using http://localhost:8000/
AyoubFrihaoui commented 2 weeks ago

Did you try to use the correct node version specified by the author in .nvmrc?

after installing NVM

it is better to delete all the dirs and files specified in .gitignore or just re-pulling the repo

run

  1. nmv install 14.16.0
  2. nvm use 14.16.0
  3. the next steps are in the original readme.md