I was using ng2-bootstrap (from my package.json file). Since it was deprecated, I replaced it with ngx-bootstrap. When trying to build I get the below error because angular.json still is looking for the file "node_modules/ng2-bootstrap/node_modules/moment/moment.js"
I've attempted:
"npm install -g @angular/cli"
"npm install @angular/cli"
"npm install --save-dev @angular/cli"
"npm install --save @angular/cli"
"npm install"
"ng update @angular/cli"
but none of these actually update the angular.json file
Error:
ENOENT: no such file or directory, open '/Users/..../node_modules/ng2-bootstrap/node_modules/moment/moment.js'