user1173169
user1173169

Reputation:

Ionic isn't recognized as an internal or external command

I installed Ionic and cordova with npm install -g ionic and npm install -g cordova and when i try to launch a simple command such as

ionic start appname blank

I get the error : Ionic isn't recognized as an internal or external command.

I checked the version installed of both cordova and ionic with npm info ionic version and npm info cordova version and both are correctly installed

cordova : v 6.0.0
ionic : v 1.7.14

I tried to npm clean cache and reinstall both and it does not work either.

My environment path are the following:

User variable : PATH C:\Users\arnaud\AppData\Roaming\npm
System variable : path : C:\Program Files\nodejs\ is present

Thank you for your help

Upvotes: 0

Views: 250

Answers (1)

liuwenzhuang
liuwenzhuang

Reputation: 966

Have you check your C:\Users\arnaud\AppData\Roaming\npm\bin directory? Maybe ionic and cordova were located in there. If so, add above directory path to your environment variable; If not, just search cordova and ionic in file explorer. Hope this would help you, regards!

Upvotes: 0

Related Questions