我正在尝试将当前的离子版本2.0.0-beta.32
更新为最新版本。
1)我运行了命令: sudo npm install -g ionic
2)我运行了命令: npm outdated
Package Current Wanted Latest Location
@angular/common 2.0.0-rc.4 2.0.0-rc.4 2.4.8 @angular/common
@angular/compiler 2.0.0-rc.4 2.0.0-rc.4 2.4.8 @angular/compiler
@angular/core 2.0.0-rc.4 2.0.0-rc.4 2.4.8 @angular/core
@angular/forms 0.2.0 0.2.0 2.4.8 @angular/forms
@angular/http 2.0.0-rc.4 2.0.0-rc.4 2.4.8 @angular/http
@angular/platform-browser 2.0.0-rc.4 2.0.0-rc.4 2.4.8 @angular/platform-browser
@angular/platform-browser-dynamic 2.0.0-rc.4 2.0.0-rc.4 2.4.8 @angular/platform-browser-dynamic
angular2-jwt 0.1.17 0.1.17 0.1.28 angular2-jwt
del 2.2.0 2.2.0 2.2.2 del
es6-shim 0.35.0 0.35.0 0.35.3 es6-shim
gulp-watch 4.3.5 4.3.5 4.3.11 gulp-watch
ionic-angular 2.0.0-beta.10 2.0.0-beta.10 2.0.1 ionic-angular
ionic-native 1.3.2 1.3.2 2.5.1 ionic-native
reflect-metadata 0.1.3 0.1.3 0.1.10 reflect-metadata
run-sequence 1.1.5 1.1.5 1.2.2 run-sequence
rxjs 5.0.0-beta.6 5.0.0-beta.6 5.2.0 rxjs
zone.js 0.6.26 0.6.26 0.7.7 zone.js
3)然后我运行了命令: sudo npm install ionic-angular@latest
。在这里我有一个错误:
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "ionic-angular@latest"
npm ERR! node v4.2.0
npm ERR! npm v2.14.7
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package @angular/common@2.0.0-rc.4 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/forms@0.2.0 wants @angular/common@^2.0.0-rc.4
npm ERR! peerinvalid Peer @angular/platform-browser@2.0.0-rc.4 wants @angular/common@^2.0.0-rc.4
npm ERR! peerinvalid Peer @angular/platform-browser-dynamic@2.0.0-rc.4 wants @angular/common@^2.0.0-rc.4
npm ERR! peerinvalid Peer ionic-angular@2.0.1 wants @angular/common@2.2.1
npm ERR! peerinvalid Peer @angular/platform-server@2.2.1 wants @angular/common@2.2.1
npm ERR! Please include the following file with any support request:
npm ERR! /Users/macbookpro/Desktop/ThePennyInc/penny-mobile-app/npm-debug.log
请提供任何帮助!
从beta到最新的离子版本(包括文件结构和应用脚本)发生了很多破坏的变化。通过步骤检查以升级Beta版本。尽管它对RC0说,但您可以按照启动新项目并复制文件来升级项目的步骤。由于不同版本的变化,代码中可能存在错误。
验证,这是当前离子版本的最新软件包。