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

fe-angular can't resolve dependencies on newer nodeJS versions #662

Closed
cschweikert opened this issue Nov 3, 2021 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@cschweikert
Copy link
Member

cschweikert commented Nov 3, 2021

The current fe-angular quickstarter fails installing the dependencies on machines with current versions of nodejs (nodeJS 16.4 with npm 8.1.0 and maybe also lower) while it is running successfully on a nodeJS 10 based build agent in Jenkins (ods/jenkins-agent-nodejs10-angular:3.x).

Steps to reproduce the behavior:

  1. provision an fe-angular quickstarter
  2. clone the new repository locally
  3. run npm install locally by using an up-to-date nodejs version

It shows an errors like this:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/jasmine-core
npm ERR!   dev jasmine-core@"~3.4.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer jasmine-core@">=3.8" from [email protected]
npm ERR! node_modules/karma-jasmine-html-reporter
npm ERR!   dev karma-jasmine-html-reporter@"^1.4.0" 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.
...

Affected Versions
It was found in 3.x but might also affect 4.x since it uses packages with the same versions.

Solution
The problem can be fixed by updating the dependencies for jasmine-core to "~3.8.0". After this a new issue will arise:

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @babel/highlight@^7.16.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
...

This again can be resolved by updating the dependencies for karma-coverage-istanbul-reporter to "~3.0.0".

@cschweikert cschweikert added the bug Something isn't working label Nov 3, 2021
@cschweikert cschweikert self-assigned this Nov 3, 2021
cschweikert added a commit that referenced this issue Nov 3, 2021
jasmine-core `3.4.0` -> `3.8.0`
karma-coverage-istanbul-reporter `~2.0.1` -> `~3.0.0`

fixes #662
This was referenced Mar 22, 2022
@cschweikert
Copy link
Member Author

This issue has been fixed for 3.x already (#663). For 4.x and master this issue will rather be fixed with an update of Angular. About the Angular update see also #765

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

1 participant