简体   繁体   English

服务时角度cli冲突

[英]Angular cli conflicts while ng serve

在此处输入图片说明

by mistake, I have to install angular 7 but the project I developed in angular 6, now I have to have this warning below, what can I do to bring back to angular 6 again, thank you 错误地,我必须安装angular 7,但是我在angular 6中开发的项目,现在我必须在下面有此警告,我该怎么做才能再次回到angular 6,谢谢

I am also facing the similar issue. 我也面临着类似的问题。 But it is just a warning. 但这只是一个警告。 It doesn't create any problem. 它不会造成任何问题。 You can continue to build or serve your angular project. 您可以继续构建或服务您的有角度的项目。 It will run on angular 6, without any issue, as your local version is angular 6. I hope this helps. 它将在角度6上运行,没有任何问题,因为您的本地版本是角度6。我希望这会有所帮助。

Your project is using the local version of angular cli, which is great. 您的项目正在使用angular cli的本地版本,这很棒。 you are just seeing this warning which can be suppressed by running this command. 您只是看到此警告,可以通过运行此命令来消除此警告。 ng config -g cli.warnings.versionMismatch false . ng config -g cli.warnings.versionMismatch false

This is the right way, to have the latest version of angular cli installed globally and use specific versions for each project. 这是正确的方法,可以在全球范围内安装最新版本的angular cli,并为每个项目使用特定版本。

You may upgrade your project (local version) to angular 7, or you can downgrade the global version to angular 6 are possible solutions. 您可以将项目(本地版本)升级到角度7,也可以将全局版本降级到角度6。 However, having the latest version of angular cli installed globally and using specified angular cli versions in your projects is perfectly normal. 但是,在全球范围内安装最新版本的angular cli并在项目中使用指定的angle cli版本是完全正常的。

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

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