Issue
Im trying to make angular-cli work in ubuntu. So i installed it, but i run into a problem.
currently im working in root.
After i run npm install -g angular-cli
and type ng help
or any of the ng commands, i get the following in the console: ( tried ng serve
)
What is that? how can i fix so ng work? how can i exit it?
Why is it not listing the ng help or any of the commands as it should?
Solution
I had the same problem, and I try
sudo apt remove ng-common
sudo npm uninstall -g @angular/cli
sudo rm /usr/local/bin/ng
and again
sudo npm i -g @angular/cli
It works for me.
Answered By - Odisleysi Martínez Furones