我想将Angular从5.0版更新到6.1版。https://update.angular.io/上的说明建议使用ng update @angular/core进行更新。但是,这直接更新到版本7,而不是版本6。
它的文档ng update建议使用--to将更新为特定版本。但是,这似乎不起作用。使用的确切命令是:ng update @angular/core --to 6.1.0但这将更新为7.0.0
我试过使用,--from=5.0.0 --to=6.1.9但是没有用。我注意到我们正在使用angular-cliversion 1.6.4。--next根据文档,此版本支持应使用的版本。(Default: false) Install the next version, instead of the latest.但这更改了所有软件包的package.json使用版本7.0.0@angular/*
angular ×1