Unable to update ionic cli


#1

node v0.12.7
npm v2.11.3
ionic v1.6.1

unable to update to v1.6.4 :confused:
tried everything, npm install -g ionic is not updating it


#2

Let’s try sudo npm uninstall -g ionic and then a fresh install sudo npm i -g ionic


#3

I’m on windows (x64)

and tried npm uninstall -g ionic and then npm i -g ionic… didn’t work :frowning:

did ionic -v
resulted in 1.6.1

And I have to use ionic io init, which isn’t available in 1.6.1 :frowning:


#4

Check your PATH environment variable, it may include old nodeJS folders


#5

The great thing is that I can use ionic commands even after uninstalling ionic using

npm uninstall -g ionic
npm cache clean

:smiley: lol


#6

i have the same issue.
I’m using ubuntu 14.04 and removed it using “sudo npm uninstall -g ionic”. I installed it again and still get ionic 1.6.1. Any idea?


#7

It’s a strange solution. But…

I had the same issue in Ubuntu 14.04.

Running

$ whereis ionic

I get the result: /usr/bin/ionic

Removing this file and installing again with:

# npm install -g ionic

solved my problem.