Ionic - CLI CLI not installed

Ionic-related - I seem to be unable to run any of my applications on IOS or Android Simulator, since the Cordova CLI will not be installed.

I think that after reading this, it is related to my update of Node.JS and / or NPM. But the information on this is not final. I was on it for several days and received nothing. I tried all the suggestions. Uninstalling, deleting hidden files, installing different stable versions, clearing the cache. Nothing worked.

My data when entering ionic information

Cordova CLI: Not installed Ionic CLI Version: 1.7.12 Ionic App Lib Version: 0.6.5 ios-deploy version: Not installed ios-sim version:Not installed OS: Mac OS X El Capitan Node Version: v4.2.3 Xcode version: Xcode 7.2 Build version 7C68 

When I install cordova sudo npm install -g cordova . This does not solve the above problem. It still remains uninstalled.

I used this link below to try a blank sheet without any node.js file on my system.

How to completely remove Node.js and reinstall from the very beginning (Mac OS X)

Still can't solve the problem.

Please help.

+11
source share
5 answers

To install Cordoba, run the command

 npm install -g cordova 

If you have already installed Cordoba or, in your case, according to your own answer, you have installed version 4 running npm install -g cordova@4 (the latest version is 5.x), you can update Cordoba to get the latest version:

 sudo npm update -g cordova 
+8
source

I solved the problem by entering the following into the terminal:

 npm install -g cordova@4 
+4
source

Where did you install the global CLI cordova ? To check, you can send this command to the terminal which cordova . it should return the path where cordova cli is located. If not, you will need to add a global NPM path to your shell.

+1
source

try:

 sudo npm install -g cordova@4 

I had the same problem and it worked!

0
source

You can also try:

npm install -g cordova ionic

0
source

All Articles