最近,我与离子型和科多瓦一起安装了node.js,并:
sudo npm install -g cordova ionic..。一切看起来都很好。但当我跑的时候
ionic info似乎Cordova CLI失踪了:
Your system information:
Cordova CLI: Not installed
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.10
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.2
ios-sim version: 5.0.3
OS: Mac OS X El Capitan
Node Version: v5.1.0
Xcode version: Xcode 7.1.1 Build version 7B1005
******************************************************
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并重新安装它,在重新安装之前但在运行之后清除npm缓存。
ionic info...again,我还是明白:
Cordova CLI: Not installed有人知道安装Cordova CLI的正确程序吗?
发布于 2015-11-20 16:56:41
最后,答案很简单:将cordova更新为特定的包。最后我用了:
npm install -g cordova@4..。解决了问题。
发布于 2017-02-16 18:26:55
同样的问题似乎在4.2.0版本中再次出现。
正在运行
$ cordova telemetry off帮我解决了这个问题。(科多瓦遥测似乎也起作用了)
详细信息:
$ 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:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.5
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`
******************************************************
$ cordova telemetry off
You have been opted out of telemetry. To change this, run: cordova telemetry on.
$ ionic info
Your system information:
ordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.9.5
Xcode version: Not installedhttps://stackoverflow.com/questions/33812254
复制相似问题