简体   繁体   English

Angular 8 通用服务器端渲染

[英]Angular 8 universal server side rendering

I am following this tutorial https://blog.angular-university.io/angular-universal/ but I couldn't execute the first command我正在关注本教程https://blog.angular-university.io/angular-universal/但我无法执行第一个命令

 ng generate universal --client-project -the name of your client project-

the error is错误是

Target name already exists.

any suggestions or if anyone has a better solution to implement angular universal on an existing angular project?任何建议或是否有人有更好的解决方案来在现有 angular 项目上实施 angular 通用?

Try to run your command like this with = sign:尝试使用=符号运行您的命令:

ng generate universal --client-project=YourApplicationName

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

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