未满足的对等依赖项升级到Angular 4

时间:2017-04-08 07:29:04

标签: angular npm yeoman package.json

我从fountain yeoman generator

开始

这给了我一个很好的角度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",

0 个答案:

没有答案