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

Dependencies Problem #20

Open
btihen opened this issue Dec 24, 2020 · 5 comments
Open

Dependencies Problem #20

btihen opened this issue Dec 24, 2020 · 5 comments
Labels
bug Something isn't working dependencies Pull requests that update a dependency file help wanted Extra attention is needed

Comments

@btihen
Copy link

btihen commented Dec 24, 2020

I am new to gatsby, but I think the dependencis have a problem. I have the newest version of node (From brew).

node --version
v15.5.0

gatsby --version
Gatsby CLI version: 2.16.2

MacOS Catalina 10.15.7

$ gatsby new web_bootstrap https://github.com/thundermiracle/gatsby-startbootstrap-agency

info Creating new site from git: https://github.com/thundermiracle/gatsby-startbootstrap-agency.git

Klone nach 'web_bootstrap' ...
remote: Enumerating objects: 165, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (143/143), done.
remote: Total 165 (delta 14), reused 114 (delta 7), pack-reused 0
Empfange Objekte: 100% (165/165), 1.42 MiB | 6.69 MiB/s, Fertig.
success Created starter directory layout
info Installing packages...

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: eslint-loader@4.0.2
npm ERR! node_modules/eslint-loader
npm ERR!   dev eslint-loader@"^4.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev gatsby-plugin-eslint@"^2.0.8" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: eslint-loader@3.0.4
npm ERR! node_modules/eslint-loader
npm ERR!   peer eslint-loader@"^3.0.2" from gatsby-plugin-eslint@2.0.8
npm ERR!   node_modules/gatsby-plugin-eslint
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/wti0405/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

 ERROR 

Command failed with exit code 1: npm install

  Error: Command failed with exit code 1: npm install
  
  - error.js:56 makeError
    [lib]/[gatsby-cli]/[execa]/lib/error.js:56:11
  
  - index.js:114 handlePromise
    [lib]/[gatsby-cli]/[execa]/index.js:114:26
  
  - task_queues:93 processTicksAndRejections
    node:internal/process/task_queues:93:5
  
  - init-starter.js:135 install
    [lib]/[gatsby-cli]/lib/init-starter.js:135:7
  
  - init-starter.js:202 clone
    [lib]/[gatsby-cli]/lib/init-starter.js:202:3
  
  - init-starter.js:343 initStarter
    [lib]/[gatsby-cli]/lib/init-starter.js:343:5
  
  - create-cli.js:485 
    [lib]/[gatsby-cli]/lib/create-cli.js:485:9
  
@thundermiracle
Copy link
Owner

@btihen
Thank you very much for the report!
I'm using yarn instead of npm to manage npm-packages for a long time, so I didn't aware there's sth wrong in my dependencies.

I'll fix this when I have time. But the quickest way to avoid this issue is using yarn instead.
You can:

  • Follow this Gatsby's instruction and run gatsby new my-blog-folder https://github.com/thundermiracle/gatsby-startbootstrap-agency again
  • Or just git clone https://github.com/thundermiracle/gatsby-startbootstrap-agency.git and run yarn to install all the packages

Of course any PR is welcome!

@thundermiracle thundermiracle added bug Something isn't working dependencies Pull requests that update a dependency file help wanted Extra attention is needed labels Dec 25, 2020
@thundermiracle
Copy link
Owner

I tried a little bit more and found that this issue only happens in node15 but it's ok in node12 even using npm install.
It's a hot potato for me and you'd better avoid using node15 but LTS node14 to start this project now.

@btihen
Copy link
Author

btihen commented Dec 26, 2020 via email

@WieFel
Copy link

WieFel commented Apr 5, 2021

Facing still the same error.

node --version
v10.24.0
npm --version
7.6.3

@thundermiracle
Copy link
Owner

@WieFel
This one a different problem IMO.

I migrated Gatsby from 2 to 3 so the minimal node version should be 12.13 as described in Gatsby's document:
Minimal Node.js version 12.13.0

And if you're not interested in the latest version of Gatsby, you can check this project's latest 2.0 version:
https://github.com/thundermiracle/gatsby-startbootstrap-agency/tree/gatsby-2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants