jscutlery / devkit

Cutleries to help you cook better apps
MIT License
246 stars 15 forks source link

Cannot install with angular 12.1.3 #79

Open KissBalazs opened 3 years ago

KissBalazs commented 3 years ago

Trying to install will result in the following error message:

g add @jscutlery/cypress-angular --force
ℹ Using package manager: npm
✔ Found compatible package version: @jscutlery/cypress-angular@0.5.1.
✔ Package information loaded.

The package @jscutlery/cypress-angular@0.5.1 will be installed and executed.
Would you like to proceed? Yes
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: @angular/core@12.1.3
npm ERR! node_modules/@angular/core
npm ERR!   peer @angular/core@"12.1.3" from @angular/animations@12.1.3
npm ERR!   node_modules/@angular/animations
npm ERR!     peerOptional @angular/animations@"12.1.3" from @angular/platform-browser@12.1.3
npm ERR!     node_modules/@angular/platform-browser
npm ERR!       peer @angular/platform-browser@"12.1.3" from @angular/forms@12.1.3
npm ERR!       node_modules/@angular/forms
npm ERR!         @angular/forms@"~12.1.0" from the root project
npm ERR!       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm ERR!     @angular/animations@"~12.1.0" from the root project
npm ERR!   peer @angular/core@"12.1.3" from @angular/common@12.1.3
npm ERR!   node_modules/@angular/common
npm ERR!     peer @angular/common@"12.1.3" from @angular/forms@12.1.3
npm ERR!     node_modules/@angular/forms
npm ERR!       @angular/forms@"~12.1.0" from the root project
npm ERR!     peer @angular/common@"12.1.3" from @angular/platform-browser@12.1.3
npm ERR!     node_modules/@angular/platform-browser
npm ERR!       peer @angular/platform-browser@"12.1.3" from @angular/forms@12.1.3
npm ERR!       node_modules/@angular/forms
npm ERR!         @angular/forms@"~12.1.0" from the root project
npm ERR!       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm ERR!     3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm ERR!   5 more (@angular/forms, @angular/platform-browser, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"11.2.14" from @angular/common@11.2.14
npm ERR! node_modules/@jscutlery/cypress-mount/node_modules/@angular/common
npm ERR!   peer @angular/common@">=6.0.0" from @storybook/angular@6.3.6
npm ERR!   node_modules/@jscutlery/cypress-mount/node_modules/@storybook/angular
npm ERR!     optional @storybook/angular@"^6.0.0" from @jscutlery/cypress-mount@0.10.1
npm ERR!     node_modules/@jscutlery/cypress-mount
npm ERR!       @jscutlery/cypress-mount@"^0.x" from @jscutlery/cypress-angular@0.5.1
npm ERR!       node_modules/@jscutlery/cypress-angular
npm ERR!   peer @angular/common@"^11.0.0" from ng-dynamic-component@8.0.1
npm ERR!   node_modules/@jscutlery/cypress-mount/node_modules/ng-dynamic-component
npm ERR!     ng-dynamic-component@"^8.0.1" from @jscutlery/cypress-mount@0.10.1
npm ERR!     node_modules/@jscutlery/cypress-mount
npm ERR!       @jscutlery/cypress-mount@"^0.x" from @jscutlery/cypress-angular@0.5.1
npm ERR!       node_modules/@jscutlery/cypress-angular
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/forest/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/forest/.npm/_logs/2021-07-30T09_22_01_188Z-debug.log
✖ Package install failed, see above.

As you can see, I am already trying the "--force" flag, but it has no effect. Same with --legacy-peer-deps.

angular version:

Angular CLI: 12.1.3
Node: 16.3.0 (Unsupported)
Package Manager: npm 7.20.1
OS: linux x64

Angular: 12.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1201.3
@angular-devkit/build-angular   12.1.3
@angular-devkit/core            12.1.3
@angular-devkit/schematics      12.1.3
@schematics/angular             12.1.3
rxjs                            6.6.7
typescript                      4.3.5
rkrisztian commented 3 years ago

@edbzn , does your fix also resolve https://github.com/jscutlery/test-utils/issues/69 (earlier report)?