简体   繁体   English

没有项目支持“服务”目标。 卡住并且无法在我的本地主机上运行 Angular 项目

[英]No projects support the 'serve' target. Stuck and can't run Angular project on my localhost

I've tried to fork an angular project from GitHub, and run it with ng serve.我尝试从 GitHub 分叉一个 Angular 项目,并使用 ng serve 运行它。 But I get the error "No project support the 'serve' target".但我收到错误“没有项目支持'服务'目标”。 I'm really stuck and don't know what to do.我真的被困住了,不知道该怎么办。 I'm new to Angular, does anyone know what to do?我是Angular的新手,有人知道该怎么做吗? My intent would be that of running the project on my localhost so I can see how the code functions.我的意图是在我的本地主机上运行项目,这样我就可以看到代码是如何运行的。 Any help would be appreciated, thank you in advance任何帮助将不胜感激,在此先感谢您

Try this尝试这个

npm install -g angular-cli

then然后

npm start

暂无
暂无

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

相关问题 Angular ng serve 不起作用:Serve 命令需要在 Angular 项目中运行,但找不到项目定义 - Angular ng serve not work:The serve command requires to be run in an Angular project, but a project definition could not be found 如何运行Bower-Angular项目? - How can I run my bower-angular project? angularjs:无法将angular-cookies安装到我的项目中 - angularjs: can't install angular-cookies to my project 错误 对不起! ionic serve 只能在 Ionic 项目目录中运行 - ERROR Sorry! ionic serve can only be run in an Ionic project directory 我无法执行我的Karma和Jasmine项目 - I can't run on my project Karma and Jasmine “serve 命令需要在 Angular 项目中运行,但找不到项目定义。” - “The serve command requires to be run in an Angular project, but a project definition could not be found.” 无法为我的旧angular.js项目打开nodemon - Can't get nodemon to turn on for my old angular.js project 无法读取未定义 angular 8 的属性 'id' on ng serve on dev only。 ng-serve --prod 工作正常 - Can't read property 'id' of undefined angular 8 on ng serve on dev only. ng-serve --prod works fine 找不到我的Angular缩小错误在哪里,配置或运行功能是否需要[]语法? - Can't find out where my Angular minify bug is, do config or run functions require [] syntax? 对于SEO,我可以仅在Angular应用程序旁边提供静态HTML替代版本吗? - For SEO, can I just serve a static HTML alternative version alongside my Angular app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM