2017-05-26 87 views
0

我期待我的角2项目移植到角4. 当我跑的命令:打字稿误差从2角迁移到4

NPM安装@角/ {常见,编译器,编译器,CLI ,核心,形式,HTTP,平台的浏览器平台浏览器的动态,平台的服务器,路由器,动画} @latest打字稿@最新--save

在这个官方链接找到: http://angularjs.blogspot.in/2017/03/angular-400-now-available.html

但是这个打字错误显示:

├── @angular/[email protected] 
├─┬ @angular/[email protected] 
│ └── [email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├─┬ @angular/[email protected] invalid 
│ └─┬ @angular/[email protected] 
│ └── [email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├─┬ @angular/[email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├── @angular/[email protected] 
├── [email protected] invalid 
└── UNMET PEER DEPENDENCY [email protected] 

npm WARN @angular/[email protected] requires a peer of [email protected]^0.8.4 but none was installed. 

回答

3

它是一个警告,告诉安装zone.js。如果您使用cli来检查应用程序是否启动,请尝试使用ng服务。

注 - Angular 4将只支持TypeScript 2.1。希望你有更新的ts版本

2

这只是一个警告没有错误。您还需要更新zone.js来解决此警告。