Local workspace file (‘angular.json’) could not be found. But same code works in another computer

it’s probably because your global @angular/ cli, project @angular/cli version or @angular/compiler-cli doesn’t match.

Debugging this

first of all run

ng -v 

to check the global version of your angular, then compare the version with your angular project versions. if it matches with them or no.

If something doesn’t match, update or downgrade it. For example to downgrade project @angular/cli run

npm uninstall -D @angular/cli

npm install -D @angular/[email protected]

To upgrade global run @angular/cli run

npm install -g @angular/cli@latest

Leave a Comment