无法识别打字稿和 ng

时间:2021-05-17 19:49:05

标签: node.js npm angular-cli

我将 node.JS 更新到 v14.17.0,结果发现它与 NPM 版本不兼容,因此根据我在 Stack Overflow 上找到的解决方案,我卸载了 node.js、npm,从 { 中删除了 nom 文件夹{1}} 并卸载 angular,然后我重新安装所有这些,希望这能解决问题,不幸的是它没有 C:\Users\<name>\AppData\Roaming 命令无法识别,npm 文件夹是空的,并且没有抱怨我重新安装了多少次 angular /CLI ng 仍然无法识别 当我检查版本时,我得到了这个:

ng

这是我跑步时得到的:node -v => v14.17.0 npm -v => 7.13.0 tsc -v =>'tsc' is not recognized as an internal or external command, operable program or batch file. ng -v =>'ng' is not recognized as an internal or external command, operable program or batch file.

npm install -g @angular/cli

我真的很绝望我找不到任何解决方案所以我寻求你的帮助

更新
您可以查看显示 angular/CLI 安装结果的图像 here

0 个答案:

没有答案