Npm Not Responding After Changing The Prefix
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 t
Solution 1:
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
npm root -g
which returns the path
C:\Users\<username>\node_module
instead of
/usr/local
or wherever node is installed , in my own case node is install in
C:\Users\<username>\AppData\Roaming\npm
I then ran
npm config set prefix "C:\Users\<username>\AppData\Roaming\npm"
Then I reinstalled cordova and ionic again
npm install -g cordova
npm install ionic -g
and all is well again
Post a Comment for "Npm Not Responding After Changing The Prefix"