Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with project installation #232

Open
snoberkhanday opened this issue Sep 20, 2022 · 8 comments
Open

Issue with project installation #232

snoberkhanday opened this issue Sep 20, 2022 · 8 comments

Comments

@snoberkhanday
Copy link

I'm having trouble with project installation

  • I first installed gatsby cli
  • After that, I installed nvm
  • Then, I did npm i

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
Copy link
Contributor

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

@snoberkhanday
Copy link
Author

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

@hichemfantar
Copy link
Contributor

What node and npm versions are you running?

@snoberkhanday
Copy link
Author

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

@hichemfantar
Copy link
Contributor

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

@snoberkhanday
Copy link
Author

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

@jjlabajo
Copy link

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
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants