简体   繁体   English

无法运行Angular项目

[英]Unable to run the Angular Project

I am following some TUTORIAL for a simple login example and I am using Angulario latest version. 我正在为一些简单的登录示例关注一些教程 ,并且正在使用Angulario最新版本。 I tried to understand the logic and downloaded the code from REPOSITORY , but can someone help me to see this in action? 我试图理解逻辑并从REPOSITORY下载了代码,但是有人可以帮助我看看实际情况吗? After downloading the project I just changed the directory to downloaded folder and then issued npm install and then issued ng serve , but it's giving me different errors like angular.json couldn't be found etc., Have searched online to overcome these errors, but no luck. 下载项目后,我只是将目录更改为已下载的文件夹,然后发出npm install然后发出ng serve ,但这给了我不同的错误,例如找不到angular.json等。已经在线搜索以克服这些错误,但是没运气。 I think I am making blunder, but please go easy as I am new to Angular. 我认为我正在犯错误,但是请放心,因为我是Angular的新手。

It is a version conflict. 这是版本冲突。 from angular6 requires new file angular.json which is not found on your project. 来自angular6的文件需要新文件angular.json,该文件在您的项目中找不到。

Try running ng update @angular/cli --migrate-only --from=1.7.4 尝试运行ng update @angular/cli --migrate-only --from=1.7.4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM