I tried updating my IONIC CLI through the npm recently, the installation were successful a couple of time but the CLI version did not change. After a research I decided to change the npm prefix, then the IONIC strated throwing up bash: IONIC command not found. Then I did a further research after which I edited the npm config through windows cmd admin. I did
npm cofig edit
I changed the prefix to
\users\<username>\
since then, npm no longer respond.
if I run something like
npm install -g ionic
nothing happens, no errors nor any form of response. I have uninstall and reinstall the node several time. I am using node V4.2.2.
I finally found a way around this . These are what I did
I deleted all the node_module folders in all my application (I am not sure if this is really necessary )
I did a complete uninstall of the node by following https://stackoverflow.com/a/20711410/1363169
I ran
which returns the path
instead of
or wherever node is installed , in my own case node is install in
I then ran
Then I reinstalled cordova and ionic again
and all is well again