Kelvin Atawura
Kelvin Atawura

Reputation: 66

ionic command still not found after installing ionic and ionic CLI

l am trying to run ionic on my mac. l am currently on EL Capitan. l have installed the ionic CLI,npm and ionic itself by following the instructions on the ionic home page. l get the response -bash: ionic: command not found everytime l run ionic start sample or ionic start sample tabs .

Upvotes: 0

Views: 5910

Answers (4)

user12751559
user12751559

Reputation:

check path variable in your environment variable. you must add the address of npm in path variable you can find it in c:/user/xxxx/appdata/roaming/npm.

Upvotes: 0

Kelvin Atawura
Kelvin Atawura

Reputation: 66

l resolved this issue weeks after posting this in 2015, thought l post an answer to anyone who might need it.

It was all to do the path for the node modules. So to resolve it l added the node module path to mt profile and it worked.

Happy coding.

Upvotes: 1

I added 'C:\Users\usr\AppData\Roaming\npm' in my path and its works very well

Upvotes: 2

Bernhard Miehl
Bernhard Miehl

Reputation: 366

Did you used this in the command-line-interface:

sudo npm install -g cordova ionic

Maybe something went wrong through the installation

Upvotes: 3

Related Questions