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

Npm install error #37

Open
sbonaime opened this issue Mar 26, 2024 · 2 comments
Open

Npm install error #37

sbonaime opened this issue Mar 26, 2024 · 2 comments

Comments

@sbonaime
Copy link

On my mac, I have the following errors after npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~9.1.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^6.0.0-rc.0 || ^6.0.0" from [email protected]
npm ERR! node_modules/ng-open-cv
npm ERR!   ng-open-cv@"^0.3.1" 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!
npm ERR! For a full report see:
npm ERR! /Users/bonaime/.npm/_logs/2024-03-26T10_51_59_523Z-eresolve-report.txt```
@renato-dias
Copy link

renato-dias commented Apr 23, 2024

Hey, I've stumbled upon the same problem I just wanted to run a simple test, so, I bypassed the dependency checks.
Also, I had to install proj4 but not @types/proj4 .
I am using Node on version v18.20.2 and commit d78143c331

By order, these were the commands I had to run:

npm i --force
npm i [email protected] --save --force
npm r @types/proj4 --force

Also, I've added "allowSyntheticDefaultImports": true under "angularCompilerOptions" on tsconfig.json

Then, to launch Angular, I had to append an extra NODE_OPTION, and the final command became:
NODE_OPTIONS=--openssl-legacy-provider ng serve

@sbonaime
Copy link
Author

It is more or less what I did here
https://github.com/sbonaime/GCPEditorPro

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

2 participants