最近,我在https://angular.io/docs/ts/latest/tutorial/岁开始学习Angular 2教程.
最后是Angular 2 beta 8.
如果我只做了npm update个模块(预装了教程),就会更新一些模块,但不会更新Angular2(我可以在npm ls中看到).
如果我做npm update angular 2或npm update angular2@2.0.0beta.14,它也什么都不做.
最近,我在https://angular.io/docs/ts/latest/tutorial/岁开始学习Angular 2教程.
最后是Angular 2 beta 8.
如果我只做了npm update个模块(预装了教程),就会更新一些模块,但不会更新Angular2(我可以在npm ls中看到).
如果我做npm update angular 2或npm update angular2@2.0.0beta.14,它也什么都不做.
命令npm update -D && npm update -S
将package.json
内的所有软件包更新为其最新版本according to 100.你可以阅读更多here.
如果要从2.0.0-rc.1
之前的版本更新Angular,则需要手动编辑package.json
,因为Angular被拆分为几个npm模块.如果没有这一点,angular2个包指向2.0.0-beta.21
,你将永远无法使用Angular的最新版本.
Notes:
A cool way to stay up to date with your packages' latest version是使用npm outdated
,它显示了所有过时的软件包以及它们想要的和最新的版本.
我们需要链接npm update -D
和npm update -S
这两个命令的原因是要克服this bug,直到它被修复.