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

[Bug]: npm install failed #126

Open
christillman opened this issue Jun 17, 2023 · 2 comments
Open

[Bug]: npm install failed #126

christillman opened this issue Jun 17, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@christillman
Copy link

Description

Directly after installing node.js on my recently installed Windows 11 machine, I navigated to the issue-forms-creator folder where I cloned your project. There I used npm install and got the errors below. Some dependencies don't work now?

Minimal Reproduction

Tried again, same result

Exception or Error

PS C:\EncounterPro\angular\issue-forms-creator> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @angular-eslint/[email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/cli
npm ERR! dev @angular/cli@"^14.2.6" from the root project
npm ERR! peerOptional @angular/cli@">=6.0.0" from @storybook/[email protected]
npm ERR! node_modules/@storybook/angular
npm ERR! dev @storybook/angular@"^6.5.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/cli@">= 13.0.0 < 14.0.0" from @angular-eslint/[email protected]
npm ERR! node_modules/@angular-eslint/schematics
npm ERR! dev @angular-eslint/schematics@"13.2.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @angular/[email protected]
npm ERR! node_modules/@angular/cli
npm ERR! peer @angular/cli@">= 13.0.0 < 14.0.0" from @angular-eslint/[email protected]
npm ERR! node_modules/@angular-eslint/schematics
npm ERR! dev @angular-eslint/schematics@"13.2.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! C:\Users\Somebody\AppData\Local\npm-cache_logs\2023-06-17T03_43_17_725Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Somebody\AppData\Local\npm-cache_logs\2023-06-17T03_43_17_725Z-debug-0.log

@christillman christillman added the bug Something isn't working label Jun 17, 2023
@geromegrignon
Copy link
Collaborator

Hello Christopher, for a quick fix on your side, you can run nom install with --force. On my latest dependancy update, I missed the eslint part to match angular core version. However forcing installation with a different eslint version will still work.

@christillman
Copy link
Author

christillman commented Jun 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants