Ionic cannot find cordova

I have npm configured to allow me to install apps globally without root, by installing to my user home, using an .npmrc. This works fine, and I have been developing node apps this way for 2 years. I installed ionic and cordova the same way, with
npm -g install ionic cordova
and in a terminal, I can run ionic info and get

~/Projects/ionic$ ionic info

Your system information:

OS: Distributor ID:	Debian Description:	Debian GNU/Linux 7.8 (wheezy) 
Node Version: v0.12.1
Cordova CLI: Not installed
Ionic CLI Version: 1.3.18

and in the same shell, I can run cordova info and get:

~/Projects/ionic/web$ cordova info
Collecting Data...

Node version: v0.12.1
Cordova version: 4.3.0
Config.xml file: 
No Plugins Currently Installed
No Platforms Currently Installed

And in an ionic project folder, I get:

~/Projects/ionic/web$ ionic platform add android
Downloading Default Ionic Resources

[=============================]  100%  0.0s
Done adding default Ionic resources
Adding icons for platform: android
Adding in default Ionic hooks
/bin/sh: 1: cordova: not found

Any ideas on why ionic cannot find cordova?

1 Like

Iā€™m running into this exact problem. Has anyone found a solution?