【发布时间】:2016-12-08 00:18:14
【问题描述】:
我有一个在 Windows/Android 上使用Ionic 2.0.0-beta.20 构建的现有应用程序。我无法让任何Ionic 2.0.0-beta.20 应用程序(包括香草(ionic start))在 OSX 上运行。因此,我认为我需要从 Ionic 2.0.0-beta.20 升级到最新版本的 Ionic 2。
任何人都可以推荐一个好的指南吗?
我担心我会破坏现有应用程序,因为我知道最新版本中的某些结构发生了变化。
谢谢。
更新
我跑:
npm install -g ionic
期待它升级到最新版本的 Ionic。
如下所示,Ionic App Lib Version: 2.1.7 是最新的。但是为什么还是有:Ionic Framework Version: 2.0.0-beta.11,这是最新版的框架吗?
Your system information:
ordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.2.2
Xcode version: Not installed
更新
现在我的 Windows 环境在尝试升级 Ionic 时出错。任何建议表示赞赏:
E:\Development\IDE\ionic-apps\theWhoZoo>ionic info
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
Your system information:
Cordova CLI: Not installed
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.14
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.2.2
Xcode version: Not installed
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
E:\Development\IDE\ionic-apps\theWhoZoo>npm install -g cordova
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
C:\Users\Richard\AppData\Roaming\npm
`-- (empty)
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Richard\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.2.2
npm ERR! npm v4.0.3
npm ERR! path C:\Users\Richard\AppData\Roaming\npm\node_modules\.staging\abbrev-fda00e1c
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Richard\AppData\Roaming\npm\node_modules\.staging\abbrev-fda00e1c' -> 'C:\Users\Richard\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Richard\AppData\Roaming\npm\node_modules\.staging\abbrev-fda00e1c' -> 'C:\Users\Richard\AppData\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! E:\Development\IDE\ionic-apps\theWhoZoo\npm-debug.log
【问题讨论】:
标签: ionic2