With latest ng CLI the npm install is not working

Abierto
#110 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
angular, javascript, node.js

Línea de trabajo

Start by running npm install with the reported Angular CLI and Node versions, then inspect the Angular, RxJS, and webpack-dev-server entries in package.json. Done means dependencies install without ERESOLVE and the demo application still works after any required compatibility updates.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Dear all,

with latest ng CLI it is not possible to npm install the dependencies of this demo app anymore.

There are errors as follows:

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @angular-devkit/build-webpack@0.1202.6
npm warn Found: webpack-dev-server@4.2.1
npm warn node_modules/webpack-dev-server
npm warn   webpack-dev-server@"^4.2.1" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peer webpack-dev-server@"^3.1.4" from @angular-devkit/build-webpack@0.1202.6
npm warn node_modules/@angular-devkit/build-webpack
npm warn   @angular-devkit/build-webpack@"0.1202.6" from @angular-devkit/build-angular@12.2.6
npm warn   node_modules/@angular-devkit/build-angular
npm warn
npm warn Conflicting peer dependency: webpack-dev-server@3.11.3
npm warn node_modules/webpack-dev-server
npm warn   peer webpack-dev-server@"^3.1.4" from @angular-devkit/build-webpack@0.1202.6
npm warn   node_modules/@angular-devkit/build-webpack
npm warn     @angular-devkit/build-webpack@"0.1202.6" from @angular-devkit/build-angular@12.2.6
npm warn     node_modules/@angular-devkit/build-angular
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular/common@12.2.6
npm error Found: rxjs@6.3.3
npm error node_modules/rxjs
npm error   rxjs@"~6.3.3" from the root project
npm error   peer rxjs@">= 6.0.0" from ngx-build-plus@12.2.0
npm error   node_modules/ngx-build-plus
npm error     ngx-build-plus@"^12.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer rxjs@"^6.5.3 || ^7.0.0" from @angular/common@12.2.6
npm error node_modules/@angular/common
npm error   @angular/common@"~12.2.6" from the root project
npm error   peer @angular/common@"12.2.6" from @angular/forms@12.2.6
npm error   node_modules/@angular/forms
npm error     @angular/forms@"~12.2.6" from the root project
npm error   3 more (@angular/platform-browser, ...)
npm error
npm error Conflicting peer dependency: rxjs@7.8.2
npm error node_modules/rxjs
npm error   peer rxjs@"^6.5.3 || ^7.0.0" from @angular/common@12.2.6
npm error   node_modules/@angular/common
npm error     @angular/common@"~12.2.6" from the root project
npm error     peer @angular/common@"12.2.6" from @angular/forms@12.2.6
npm error     node_modules/@angular/forms
npm error       @angular/forms@"~12.2.6" from the root project
npm error     3 more (@angular/platform-browser, ...)
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.
...

My development setup is as follows:

Angular CLI: 20.1.6
Node: 22.17.1
Package Manager: npm 10.9.2
OS: win32 x64

I see that in package.json many version are outdated. For example "@angular/common": "~12.2.6" is quite old.

I've tried to increase a few versions, but I could not make it work. I receive follow-up issues in other areas of the demo app.

Would you mind to increase the versions in package.json and retest this demo application? It might be that there were a few breaking changes in the angular framework and you might need to change the demo app accordingly.

Thanks a lot in advance.
Best regards, Adrian Rygiol

Lenguaje dominante
JavaScript
Estrellas
39
Forks
14
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de UI5/sample-webcomponents-angular

Todos los issues de UI5/sample-webcomponents-angular

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.