AykutSarac / jsoncrack.com

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML, CSV and more, into interactive graphs.
https://jsoncrack.com/
Other
32.95k stars 2.11k forks source link

npm install fails, yarn install does not #16

Closed klauern closed 2 years ago

klauern commented 2 years ago

I just cloned the repo and found that it wasn't working with npm install, but was working when I switched to yarn install. I'm not sure why:

dev/js-ts/jsonvisio.com on  main via  v18.0.0 klauern
at 10:43:09 ❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: json-visio@v1.4.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR!   react@"18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0" from react-ace@10.0.0
npm ERR! node_modules/react-ace
npm ERR!   react-ace@"^10.0.0" from the root project
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/nklauer/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nklauer/.npm/_logs/2022-04-25T15_43_14_843Z-debug-0.log

dev/js-ts/jsonvisio.com on  main via  v18.0.0 klauern took 2s
at 10:43:16 ❯ yarn install
yarn install v1.22.17
warning ../../package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > react-ace@10.0.0" has incorrect peer dependency "react@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0".
warning " > react-ace@10.0.0" has incorrect peer dependency "react-dom@^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0".
warning "react-hot-toast > goober@2.1.8" has unmet peer dependency "csstype@^3.0.10".
warning " > react-split-pane@0.1.92" has incorrect peer dependency "react@^16.0.0-0".
warning " > react-split-pane@0.1.92" has incorrect peer dependency "react-dom@^16.0.0-0".
warning " > react-zoom-pan-pinch@2.1.3" has incorrect peer dependency "react@^17.0.2".
warning " > react-zoom-pan-pinch@2.1.3" has incorrect peer dependency "react-dom@^17.0.2".
warning "reaflow > rdk@5.1.6" has incorrect peer dependency "framer-motion@^3.0.0".
warning "reaflow > rdk > react-scrolllock@5.0.1" has incorrect peer dependency "react@^16.3.0".
warning " > styled-components@5.3.5" has unmet peer dependency "react-is@>= 16.8.0".
warning " > @testing-library/user-event@14.1.0" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > babel-jest@27.5.1" has unmet peer dependency "@babel/core@^7.8.0".
warning "babel-jest > babel-preset-jest@27.5.1" has unmet peer dependency "@babel/core@^7.0.0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax@1.0.1" has unmet peer dependency "@babel/core@^7.0.0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-async-generators@7.8.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-bigint@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-class-properties@7.12.13" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-import-meta@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-json-strings@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-logical-assignment-operators@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-nullish-coalescing-operator@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-numeric-separator@7.10.4" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-object-rest-spread@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-catch-binding@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-optional-chaining@7.8.3" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "babel-jest > babel-preset-jest > babel-preset-current-node-syntax > @babel/plugin-syntax-top-level-await@7.14.5" has unmet peer dependency "@babel/core@^7.0.0-0".
[4/4] 🔨  Building fresh packages...
warning Your current version of Yarn is out of date. The latest version is "1.22.18", while you're on "1.22.17".
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
✨  Done in 23.63s.
AykutSarac commented 2 years ago

Can you try again and let me know if it works for you now please? @klauern

klauern commented 2 years ago

Ah, unfortunately, it does not:

at 11:14:10 ❯ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 5 (delta 4), reused 3 (delta 3), pack-reused 0
Unpacking objects: 100% (5/5), 1.37 KiB | 116.00 KiB/s, done.
From https://github.com/AykutSarac/jsonvisio.com
   199c01a..16d73bd  main                 -> origin/main
 * [new branch]      fix-version-conflict -> origin/fix-version-conflict
Updating 199c01a..16d73bd
Fast-forward
 package.json |  4 ++--
 yarn.lock    | 29 ++++++++++++++++-------------
 2 files changed, 18 insertions(+), 15 deletions(-)

dev/js-ts/jsonvisio.com on  main via  v18.0.0
at 11:14:12 ❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: json-visio@v1.4.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0-0" from react-split-pane@0.1.92
npm ERR! node_modules/react-split-pane
npm ERR!   react-split-pane@"^0.1.92" from the root project
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/nklauer/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nklauer/.npm/_logs/2022-04-25T16_14_18_280Z-debug-0.log
AykutSarac commented 2 years ago

Ah, unfortunately, it does not:

at 11:14:10 ❯ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 5 (delta 4), reused 3 (delta 3), pack-reused 0
Unpacking objects: 100% (5/5), 1.37 KiB | 116.00 KiB/s, done.
From https://github.com/AykutSarac/jsonvisio.com
   199c01a..16d73bd  main                 -> origin/main
 * [new branch]      fix-version-conflict -> origin/fix-version-conflict
Updating 199c01a..16d73bd
Fast-forward
 package.json |  4 ++--
 yarn.lock    | 29 ++++++++++++++++-------------
 2 files changed, 18 insertions(+), 15 deletions(-)

dev/js-ts/jsonvisio.com on  main via  v18.0.0
at 11:14:12 ❯ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: json-visio@v1.4.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0-0" from react-split-pane@0.1.92
npm ERR! node_modules/react-split-pane
npm ERR!   react-split-pane@"^0.1.92" from the root project
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/nklauer/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/nklauer/.npm/_logs/2022-04-25T16_14_18_280Z-debug-0.log

Updated installation instructions at README.md (added --legacy-peer-deps), can you try it out?

jessycormier commented 2 years ago

I have Node @v16.14.2, Npm @v8.5.0 and npm install worked for me (I used the --legacy-peer-deps).

AykutSarac commented 2 years ago

I have Node @v16.14.2, Npm @v8.5.0 and npm install worked for me (I used the --legacy-peer-deps).

Thanks for confirming, closing the issue.