Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic framework - 'ionic' is not recognized as an internal or external command

Tags:

ionic

I was trying to install ionic and create a sample project on it since morning. But, was facing a series of issues since then. Tried solving them one by one. Atlast restarted my machine and opened command prompt to build the sample project and tried

path of the sample project> ionic build android 

But, i kept on facing the error that states 'ionic' is not recognized as an internal or external command.

I tried clearing the cache and reinstalling ionic in my machine. Still, I face the same issue of ionic is not recognized as an internal or external command.

Can somebody help me out on this issue?

Thanks Manikandan J

like image 856
Manikandan Avatar asked Mar 29 '15 15:03

Manikandan


People also ask

How do you check ionic CLI is installed or not?

In the browser console, you can run ionic. version and it will print to the console what version it is.


2 Answers

Somehow , my npm path was not there in PATH environmental Variable

So after adding C:\Users\XXXXX\AppData\Roaming\npm to my PATH variable my problem solved :-)

like image 190
Raaghu Avatar answered Sep 27 '22 18:09

Raaghu


Try to install the ionic framework with the -g parameter, so the installation will be globall, like this:

npm install -g ionic 

-g parameter mean "its binaries end up in your PATH environment variable."

like image 39
Teodoros Avatar answered Sep 27 '22 20:09

Teodoros