I created a new Angular 10 app on a git feature branch. I set up the basic framework for it, then merged that feature branch into release. I created a new feature branch from release to start working on an enhancement and when I tried to run ng serve
, I got this error:
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
Looking at this SO answer (https://stackoverflow.com/a/51581991/787958), the solution was to run npm update
. This worked for me, but it seems like a major pain to need to do this on every new git branch. Is there something I can change in the gitignore file so that this is not necessary or is this just a standard pain that everyone has to deal with?