kerhub/issue-forms-creator

[Bug]: npm install failed

Opened this issue · 2 comments

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/schematics@13.2.1
npm ERR! Found: @angular/cli@14.2.6
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/angular@6.5.12
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/schematics@13.2.1
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/cli@13.3.11
npm ERR! node_modules/@angular/cli
npm ERR! peer @angular/cli@">= 13.0.0 < 14.0.0" from @angular-eslint/schematics@13.2.1
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

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.