Fehler: npm ERR! code ERESOLVE unable to resolve dependency tree
Betrifft:
Beim Erstellen einer neuen Angular app
video tutorial
Angular: ng new App
Error Meldung bei ng new app
Wenn man versucht eine neue Angular App zu ersellen
Lösung:
Node.js aktualisieren
Node.js in Windows 10 deinstallieren
Node.js erneut installieren als stabile Version
1) Löschen der node.js auf Windows 10
Anleitung: Deinstallieren von node.js von Windows 10 Computer @ codedocu_de Office 365
2) Installation der aktuellen Version von node.js
Anleitung: wie installiert man die neueste Version von Node.js @ codedocu_de Software
https://codedocu.de/Details?d=3425&a=11&f=502&l=0
Lösung:
Ng new erfolgreich
Log-Daten der Fehlerversion:
Kleine Lösung
this command with --force, or --legacy-peer-deps
⠸ Installing packages (npm)...npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: clientapp@0.0.0 npm ERR! Found: jasmine-core@3.6.0 npm ERR! node_modules/jasmine-core npm ERR! dev jasmine-core@"~3.6.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer jasmine-core@">=3.7.1" from karma-jasmine-html-reporter@1.6.0 npm ERR! node_modules/karma-jasmine-html-reporter npm ERR! dev karma-jasmine-html-reporter@"^1.5.0" from the root project npm ERR! |
Log code
Windows PowerShell Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten. Lernen Sie das neue plattformübergreifende PowerShell kennen – https://aka.ms/pscore6 PS D:\Programmierung\Web\CodeDocu\CodeDocu_Angular> ng new clientapp ? Do you want to enforce stricter type checking and stricter bundle budgets in the workspace? This setting helps improve maintainability and catch bugs ahead of time. For more information, see https://angular.io/strict No ? Would you like to add Angular routing? Yes ? Which stylesheet format would you like to use? CSS CREATE clientapp/angular.json (3559 bytes) CREATE clientapp/package.json (1199 bytes) CREATE clientapp/README.md (1018 bytes) CREATE clientapp/tsconfig.json (538 bytes) CREATE clientapp/tslint.json (3185 bytes) CREATE clientapp/.editorconfig (274 bytes) CREATE clientapp/.gitignore (631 bytes) CREATE clientapp/.browserslistrc (703 bytes) CREATE clientapp/karma.conf.js (1426 bytes) CREATE clientapp/tsconfig.app.json (287 bytes) CREATE clientapp/tsconfig.spec.json (333 bytes) CREATE clientapp/src/favicon.ico (948 bytes) CREATE clientapp/src/index.html (295 bytes) CREATE clientapp/src/main.ts (372 bytes) CREATE clientapp/src/polyfills.ts (2830 bytes) CREATE clientapp/src/styles.css (80 bytes) CREATE clientapp/src/test.ts (753 bytes) CREATE clientapp/src/assets/.gitkeep (0 bytes) CREATE clientapp/src/environments/environment.prod.ts (51 bytes) CREATE clientapp/src/environments/environment.ts (662 bytes) CREATE clientapp/src/app/app-routing.module.ts (245 bytes) CREATE clientapp/src/app/app.module.ts (393 bytes) CREATE clientapp/src/app/app.component.html (24846 bytes) CREATE clientapp/src/app/app.component.spec.ts (1066 bytes) CREATE clientapp/src/app/app.component.ts (213 bytes) CREATE clientapp/src/app/app.component.css (0 bytes) CREATE clientapp/e2e/protractor.conf.js (904 bytes) CREATE clientapp/e2e/tsconfig.json (274 bytes) CREATE clientapp/e2e/src/app.e2e-spec.ts (660 bytes) CREATE clientapp/e2e/src/app.po.ts (274 bytes) ⠸ Installing packages (npm)...npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: clientapp@0.0.0 npm ERR! Found: jasmine-core@3.6.0 npm ERR! node_modules/jasmine-core npm ERR! dev jasmine-core@"~3.6.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer jasmine-core@">=3.7.1" from karma-jasmine-html-reporter@1.6.0 npm ERR! node_modules/karma-jasmine-html-reporter npm ERR! dev karma-jasmine-html-reporter@"^1.5.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. npm ERR! npm ERR! See C:\Users\Raimund\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Raimund\AppData\Local\npm-cache\_logs\2021-07-08T08_48_10_303Z-debug.log ✖ Package install failed, see above. The Schematic workflow failed. See above. PS D:\Programmierung\Web\CodeDocu\CodeDocu_Angular> |