ng new project
为什么angular-cli 1.5.4下载角度版本是5.0.0而不是5.0.3? angular.io表示稳定版本为5.0.3
答案 0 :(得分:0)
检查您的package.json
文件,如果角度版本前面有~
或^
。
~ means -
In the simplest terms, the tilde matches the most recent minor version
(the middle number). ~1.2.3 will match all 1.2.x versions but will miss
^ means -The caret, on the other hand, is more relaxed. It will update you
to the most recent major version (the first number). ^1.2.3 will
match any 1.x.x release including 1.3.0, but will hold off on 2.0.0.
阅读本文:http://fredkschott.com/post/2014/02/npm-no-longer-defaults-to-tildes/