as the error message suggests: "please try running this command again as root/administrator".
so log in as a root user, or give yourself root permission in a terminal.
the easiest thing would be to use sudo. so sudo npm install -g @angular/cli.
otherwise you could use su to get root and the run your command again
you need to use the sudo to run all your commands as administrator , then you need to install typescript and angular CLI to setup correctly your angular environment.
You should run
sudo npm install -g @angular/cli
as the error message suggests: "please try running this command again as root/administrator". so log in as a root user, or give yourself root permission in a terminal.
the easiest thing would be to use
sudo
. sosudo npm install -g @angular/cli
.otherwise you could use
su
to get root and the run your command againyou need to use the sudo to run all your commands as administrator , then you need to install typescript and angular CLI to setup correctly your angular environment.
sudo npm install -g typescript
sudo npm install -g @angular/cli@latest