TypeError:无效版本:未安装

时间:2015-07-08 16:33:08

标签: cordova ionic-framework

升级所有软件包后,一旦我运行gulp,这就是我得到的

TypeError: Invalid Version: Not installed
Invalid Version: Not installed (CLI v1.6.1)
'run-ionic' errored after 12 s
[10:12:30] Error in plugin 'gulp-shell'
Message:
    Command `ionic serve` failed with exit code 1

Invalid Version: Not installed (CLI v1.6.1)

Your system information:

Cordova CLI: Not installed
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Version: 1.0.0-nightly-1299
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS 
Node Version: v0.12.4

我该怎么办?

1 个答案:

答案 0 :(得分:18)

我试图启动一个新的离子应用程序并得到同样的错误。我猜你已经安装了npm,但没有安装Cordova CLI,所以我建议你在npm安装在终端。

sudo npm install -g cordova

它对我有用,我希望它可以帮到你。