Cannot run ionic. receives “No command ‘ionic’ found”

for some of you, the two answer above might not work. here’s a more general solution for situation where you see “XX” command not found

first check your npm root and npm root -g
the result for the npm root -g should be something like "/usr/local".
if it’s not, then you found your problem.

change it by:

npm config set prefix /usr/local

then npm root -g should give you something like /usr/local/lib/node_modules
.
Then go ahead re-install everything with -g
you will be good to go!

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)