Recommended Angular version (date = 19-06-2023)

Hello internet-wanderer,

You most likely found this topic as you are stuck with installing openEMS UI…

The manual specifies installing angular by npm install -g @angular/cli However this installs automatically Angular 16. Currently this is not supported (see pull request 2183)

The angular version you should use is 15.1.2 the install command is thus

npm install -g @angular/cli@15.1.2

Hopefully i saved you a couple of hours figuring this out. However, if you read this in the future, please check if angular X is then supported, before doing the latest install.

Kind Regards,

Menno Spitteler

Hello,
I was wondering if this is still the case? Where would I go to check which versions of angular are supported?

1 Minute of search :slight_smile:

1 Like

I have a npm install problem after upgrade angular from 15 to 16, While resolving: ng2-charts@4.1.1, this ng2-charts library seems conflict.

1 Like

Nothing conflicts. Everything Works. I have it running :slight_smile:

:sweat_smile: but I have the problem like below info,could you please have some solution to help me? npm install
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: ng2-charts@4.1.1
npm error Found: @angular/core@16.2.12
npm error node_modules/@angular/core
npm error @angular/core@β€œ~16.2.12” from the root project
npm error peer @angular/core@β€œ16.2.12” from @angular/animations@16.2.12
npm error node_modules/@angular/animations
npm error @angular/animations@β€œ~16.2.12” from the root project
npm error peerOptional @angular/animations@β€œ16.2.12” from @angular/platform-browser@16.2.12
npm error node_modules/@angular/platform-browser
npm error @angular/platform-browser@β€œ~16.2.12” from the root project
npm error 3 more (@angular/forms, @angular/platform-browser-dynamic, @angular/router)
npm error 1 more (ngx-spinner)
npm error 13 more (@angular/common, @angular/compiler, @angular/forms, …)
npm error
npm error Could not resolve dependency:
npm error peer @angular/cdk@β€œ>=14.0.0” from ng2-charts@4.1.1
npm error node_modules/ng2-charts
npm error ng2-charts@β€œ^4.1.1” from the root project
npm error
npm error Conflicting peer dependency: @angular/core@18.0.3
npm error node_modules/@angular/core
npm error peer @angular/core@β€œ^18.0.0 || ^19.0.0” from @angular/cdk@18.0.3
npm error node_modules/@angular/cdk
npm error peer @angular/cdk@β€œ>=14.0.0” from ng2-charts@4.1.1
npm error node_modules/ng2-charts
npm error ng2-charts@β€œ^4.1.1” from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/lijing/.npm/_logs/2024-06-13T08_19_54_737Z-eresolve-report.txt

npm error A complete log of this run can be found in: /Users/lijing/.npm/_logs/2024-06-13T08_19_54_737Z-debug-0.log

delete your modules folder and reinstall with npm install

I have tried the way deleting modules folder before, but it still doesn’t work,same error report. Thanks for the suggestion anyway.

I share my final solution here:npm config set legacy-peer-deps true

2 Likes

If ound out, that we still have the same issue, correct ?