Al momento de instalar la librería xlsx con npm install xlsx, en un proyecto de angular versión 15.1, me salen estos errores:
➜ npm install xlsx
npm ERR! ERESOLVE could not resolve
npm ERR! While resolving: @angular/[email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/compiler
npm ERR! peer @angular/compiler@"15.1.2" from @angular/[email protected]
npm ERR! node_modules/@angular/platform-browser-dynamic
npm ERR! @angular/platform-browser-dynamic@"^15.1.0" from the root project
npm ERR! @angular/compiler@"^15.1.0" from the root project
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/compiler@"15.2.4" from @angular/[email protected]
npm ERR! node_modules/@angular/compiler-cli
npm ERR! peer @angular/compiler-cli@"^15.0.0" from @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^15.2.9" from the root project
npm ERR! peer @angular/compiler-cli@"15.2.4" from @angular/[email protected]
npm ERR! node_modules/@angular/localize
npm ERR! peerOptional @angular/localize@"^15.0.0" from @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^15.2.9" from the root project
npm ERR! 1 more (the root project)
npm ERR! 2 more (@ngtools/webpack, the root project)
npm ERR! Conflicting peer dependency: @angular/[email protected]
npm ERR! node_modules/@angular/compiler
npm ERR! peer @angular/compiler@"15.2.4" from @angular/[email protected]
npm ERR! node_modules/@angular/compiler-cli
npm ERR! peer @angular/compiler-cli@"^15.0.0" from @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^15.2.9" from the root project
npm ERR! peer @angular/compiler-cli@"15.2.4" from @angular/[email protected]
npm ERR! node_modules/@angular/localize
npm ERR! peerOptional @angular/localize@"^15.0.0" from @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"^15.2.9" from the root project
Intenté con npm install xlsx --save pero vuelven a salir los mismos errores. Salen esos errores cuando intento instalar la librería xlsx, tengo instalado angular 15.1 y node 18.13, estoy tratando de instalar directamente en Visual Studio Code. ¡Me ayudan! ¡por favor!