关于角度cli的安装?

时间:2017-11-21 16:34:27

标签: angular command-line-interface failed-installation

所以,我试图安装角度cli。在完成整个过程之前,一切似乎都很好。但是,至少ng -v的命令显示命令无法识别。我想安装cli ASAP.Please澄清这个人? enter image description here

1 个答案:

答案 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