我无法运行下载的 Angular 模板。当我尝试执行命令“ngserve”和“npm install”时,出现无法解决的错误,即使在更改 Node 和 npm 版本之后也是如此。问题还是一样。
当我运行“npm install”命令时,我收到此错误消息:
npm ERR! Invalid dependency type requested: alias
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\MSI\AppData\Roaming\npm-cache_logs\2023-07-25T14_47_38_888Z-debug.log
同样,当我运行“ngserve”命令时,我遇到了同样的错误:
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json' See "C:\Users\MSI\AppData\Local\Temp\ng-2f3EBj\angular-errors.log" for further details.