成功安装离子。运行 ionic info 和 ionic browser --list 等其他命令时,我收到一个错误,即 cordova 低于版本 4。
Cordova 安装时没有 sudo 并且位于全局主目录中。
> ionic info
Your system information:
Cordova CLI: 6.1.0 (cordova-lib@undefined)
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS: Distributor ID: Ubuntu Description: Ubuntu 15.10
Node Version: v5.9.1
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly suggested to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
Cordova 安装在:
> which cordova
/home/user_1/.npm-global/bin/cordova
离子安装在:
> which ionic
/home/user_1/.npm-global/bin/ionic