Got this error in specific folders 'ionic' is not recognized as an internal or external command


#1

i just update my ionic and cordova version and i got weird issue. in specific folders i got

ionic' is not recognized as an internal or external command

but when i try in other different folders i don’t get this issue as you can see here


I tried to reinstall the node, ionic and cordova and get the same problem.


#2

When installing, did you include the -g flag to install it globally?

npm install -g ionic cordova


#3

Yes i include -g.
npm install -g cordova ionic


#4

weird thing i just noticed now i got different version of npm in different folder

C:\Users\adirz>npm -v 4.0.5

C:\Users\adirz>cd myapps

C:\Users\adirz\myapps>npm -v 3.10.9


#5

Answer is here (hopefully), Uninstall Cordova first?