0
votes

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 .

4

4 Answers

3
votes

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

sudo npm install -g cordova ionic

Maybe something went wrong through the installation

2
votes

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

1
votes

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.

0
votes

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.