我使用可用于 Visual Studio 2015 的新 ionic 模板创建了一个基本应用程序。我想看看 iPhone 上使用 ionic View App 的应用程序。我在哪里可以发出 cli 命令ionic upload
?(PM console和console2拒绝)
因为只是在 cmd 中输入 ionic 不起作用,(无法识别的命令)我下载并安装了 ionic 框架(即使 VS2015 ionic 中的一切工作正常)。然后,如果我运行离子上传,我会收到一个错误:
ordovaProject4\www>ionic upload
TypeError: Invalid Version: Not installed
at new SemVer (C:\Users\3stra\AppData\Roaming\npm\node_modules\ionic\node_mo
dules\semver\semver.js:295:11)
at Range.test (C:\Users\3stra\AppData\Roaming\npm\node_modules\ionic\node_mo
dules\semver\semver.js:1049:15)
at Function.satisfies (C:\Users\3stra\AppData\Roaming\npm\node_modules\ionic
\node_modules\semver\semver.js:1098:16)
at Object.checkRuntime (C:\Users\3stra\AppData\Roaming\npm\node_modules\ioni
c\node_modules\ionic-app-lib\lib\info.js:295:32)
at Object.run (C:\Users\3stra\AppData\Roaming\npm\node_modules\ionic\lib\cli
.js:54:10)
at Object.<anonymous> (C:\Users\3stra\AppData\Roaming\npm\node_modules\ionic
\bin\ionic:9:10)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Invalid Version: Not installed (CLI v1.6.4)
Your system information:
Cordova CLI: Not installed
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
OS: Windows 8.1
Node Version: v0.12.2