linagora / llng-manager

New Lemonldap-NG manager based on React.js
GNU General Public License v2.0
3 stars 1 forks source link

Unable to install/build on Ubuntu 22.04 #18

Open coudot opened 1 week ago

coudot commented 1 week ago

Trying to run on my laptop:

clement@ader-worteks:~/dev/llng/llng-manager$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: babel-jest@27.5.1
npm ERR! node_modules/babel-jest
npm ERR!   babel-jest@"^27.5.1" from jest-config@27.5.1
npm ERR!   node_modules/jest-config
npm ERR!     jest-config@"^27.5.1" from @jest/core@27.5.1
npm ERR!     node_modules/@jest/core
npm ERR!       @jest/core@"^27.5.1" from jest@27.5.1
npm ERR!       node_modules/jest
npm ERR!         peer jest@"^27.0.0 || ^28.0.0" from jest-watch-typeahead@1.1.0
npm ERR!         node_modules/jest-watch-typeahead
npm ERR!         1 more (react-scripts)
npm ERR!       1 more (jest-cli)
npm ERR!     jest-config@"^27.5.1" from jest-cli@27.5.1
npm ERR!     node_modules/jest-cli
npm ERR!       jest-cli@"^27.5.1" from jest@27.5.1
npm ERR!       node_modules/jest
npm ERR!         peer jest@"^27.0.0 || ^28.0.0" from jest-watch-typeahead@1.1.0
npm ERR!         node_modules/jest-watch-typeahead
npm ERR!         1 more (react-scripts)
npm ERR!   babel-jest@"^27.4.2" from react-scripts@5.0.1
npm ERR!   node_modules/react-scripts
npm ERR!     dev react-scripts@"5.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev ts-jest@"^29.1.2" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: babel-jest@29.7.0
npm ERR! node_modules/babel-jest
npm ERR!   peerOptional babel-jest@"^29.0.0" from ts-jest@29.1.5
npm ERR!   node_modules/ts-jest
npm ERR!     dev ts-jest@"^29.1.2" 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 /home/clement/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/clement/.npm/_logs/2024-06-24T09_35_02_952Z-debug.log

Installed versions:

ii  node-npm-bundled                                            1.1.2-1                                      all          Parses info on bundled dependencies
ii  node-npm-package-arg                                        8.1.5-1                                      all          Parse the things that can be arguments to npm install
ii  node-npmlog                                                 6.0.1+~4.1.4-1                               all          Logger with custom levels and colored output for Node.js
ii  node-read-package-json                                      4.1.1-1                                      all          Read package.json for npm module for Node.js
ii  node-validate-npm-package-license                           3.0.4-2                                      all          Tells if a string is a valid npm package license string
ii  node-validate-npm-package-name                              3.0.0-4                                      all          Checks if a string is a valid npm package name
ii  npm                                                         8.5.1~ds-1                                   all          package manager for Node.js
Eriikah commented 1 week ago

You might have to update npm, I am currently using npm 10.2.4.

coudot commented 1 week ago

Ok, I'll see how to do that on a virtual machine (npm version is frozen by the packages).