这给了我一个很好的角度2存根,但现在Angular是版本4
http://angularjs.blogspot.com.au/2017/03/angular-400-now-available.html
所以我使用了升级说明
npm install @angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest typescript@latest --save
这有效,但我收到了这些警告:
+-- UNMET PEER DEPENDENCY babel-core@^6.0.0
+-- UNMET PEER DEPENDENCY webpack@2.3.3
`-- UNMET PEER DEPENDENCY zone.js@0.7.8
这些问题以及如何解决?
编辑:在package.json
我有这个(没有babel-core):
"dependencies": { ...
"zone.js": "^0.7.7" ...
"devDependencies": { ...
"webpack": "^2.2.1",