答案 0 :(得分:0)
1) Install node.js and check and node -v in command prompt. (Node.js
through website).
2) npm install -g @angular/cli@latest (run in command prompt).
请参阅此链接以获取进一步的帮助https://github.com/angular/angular-cli
3) Check node -version
4) Check npm -version
5) check ng -version
If already installed, then uninstall it and install again,
npm uninstall -g @angular/cli
npm cache clean