npm install -g @angular/cli
Use above command if you want to install angular globally
If you get a permission denied error then use sudo command and enter the password.
ng --version
Use above command to test if everything works fine.
npm install -g @angular/cli
Use above command if you want to install angular globally
If you get a permission denied error then use sudo command and enter the password.
ng --version
Use above command to test if everything works fine.