我试图安装角CLI和我有这两个警告,我担心这将困扰我以后,我不知道如何修复它,请帮助我.....
C:\Users\ASUS>npm install -g @angular/cli
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
changed 231 packages, and audited 232 packages in 5s
26 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
之后,我试图看到版本的Angular ,如果它是安装。cmd显示这个错误。
C:\Users\ASUS>ng --version
Error: You need to specify a command before moving on. Use '--help' to view the available commands.
1条答案
按热度按时间x6yk4ghg1#
尝试命令“ng v”并检查它是否询问任何有关谷歌的问题,并说N为否。如果它显示Angular 版本,则意味着安装了Angular /cli