After I have executed the code:
npm install -g@angular/cli
ng
commands don't work and my npm
folder is also empty, it does not contain the angular files.
I have node version 12 and npm
version above 6.
After I have executed the code:
npm install -g@angular/cli
ng
commands don't work and my npm
folder is also empty, it does not contain the angular files.
I have node version 12 and npm
version above 6.
First of all, make sure that Angular CLI was installed:
npm list -g --depth=0
If @angular/cli
is not mentioned in the list, try to reinstall it:
npm install -g @angular/cli
Then you must be able to create a new project:
ng new my-dream-app