ionic-cli: Cordova CLI not detected with ionic info
From @anishone on February 3, 2016 7:41
I installed cordova using sudo npm install -g cordova
and can see that its installed:
sudo npm -g list | grep cordova
├─┬ cordova@6.0.0
│ ├─┬ cordova-lib@6.0.0
│ │ ├── cordova-app-hello-world@3.10.0
│ │ ├─┬ cordova-common@1.0.0
│ │ ├─┬ cordova-js@4.1.3
│ │ ├── cordova-registry-mapper@1.1.14
│ │ ├─┬ cordova-serve@1.0.0
│ │ ├─┬ ionic-cordova-lib@5.1.10
│ │ │ ├── cordova-app-hello-world@3.9.0
│ │ │ ├─┬ cordova-js@4.0.0
│ │ │ ├── cordova-registry-mapper@1.1.14
│ │ │ ├─┬ cordova-serve@0.1.3
But, ionic info
shows that Cordova CLI is not installed.
$ sudo ionic info
Your system information:
Cordova CLI: Not installed
Ionic Version: 2.0.0-alpha.53
Ionic CLI Version: 2.0.0-beta.17
Ionic App Lib Version: 2.0.0-beta.8
ios-deploy version: Not installed
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.3.0
Xcode version: Xcode 6.4 Build version 6E35b
However, if I install cordova@4.2.0, then ionic info
identifies that its installed. Strange!
I tried uninstalling and reinstalling ionic, ionic@beta… but still it shows the same error. Am I missing something? Is there any way to let ionic know the path of Cordova? I want to use newer versions of cordova.
Thanks!
Copied from original issue: driftyco/ionic#5313
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (2 by maintainers)
Looks like ionic get the cordova version from the update-notifier-cordova.json which is in ~/.config/configstore (for Linux). Just do
sudo chown $your_user update-notifier-cordova.json
and this will solve the problem
Still getting this issue on Linux Mint x64.
Running
ionic info
prints:Strangely, running
sudo ionic info
prints:The above “fix” with
sudo chown
didn’t work for me.I figured out the issue (at least for me). I didn’t have permissions to the Cordova folder after updating to 6.0. Try this stack overflow helped.
Hi all. I’m having the same issue here. Just adding some detail. By doing “ionic info” I got “Cordova CLI: Not installed” and by doing: “sudo ionic info”, I got “Cordova CLI: 6.1.1”
So, it must be a permission issue indeed.