hey guys,
i ran into update issues (as I am doing so often) and I thought it would be a wise idea to start fresh with an ionic starter app.
so I did ionic start and chose angular and the my-first-app
after everything went through I did
npm update (to see if that would work with a blank new starter)
and it crashed
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: photo-gallery-ng-capacitor@2.0.0
npm ERR! Found: typescript@3.9.7
npm ERR! node_modules/typescript
npm ERR! dev typescript@"^3.8.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@">=3.6 <3.9" from @angular/compiler-cli@9.1.12
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"^9.1.1" 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 /Users/henningjaeger/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/henningjaeger/.npm/_logs/2020-11-23T07_50_58_306Z-debug.log
expectation:
a brand new starter app should not run into an npm update error (whatsoever)
Aside my expectation, I realise that I might just be to bold or naive here, so if anyone has a hint on where to learn how to avoid these topics I would be most grateful. I guess I am not really getting the topic dependency management that deep
currently with my working apps I already try to not update anything because in 99% of my tries it always breaks everything
there must be a better way - at least I hope