thundermiracle / gatsby-startbootstrap-agency

Gatsby version of startbootstrap-agency with i18n supported
https://gatsby-startbootstrap-agency.thundermiracle.com/
MIT License
66 stars 34 forks source link

Dependencies Problem #20

Open btihen opened 3 years ago

btihen commented 3 years ago

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 commented 3 years ago

@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:

Of course any PR is welcome!

thundermiracle commented 3 years ago

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 commented 3 years ago

Hmm - I’ll try yarn, I’m surprised the different tools would have different packaging problems.

Bill

On 25 Dec 2020, at 10:10, ThunderMiracle notifications@github.com wrote:

 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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

WieFel commented 3 years ago

Facing still the same error.

node --version
v10.24.0
npm --version
7.6.3
thundermiracle commented 3 years ago

@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