Cannot update ionic cli


If I do ionic --v it shows version 1.6.4, then I do npm install -g ionic it updates it fine, but version doesn’t change.

When i look where npm install -g ionic updates ionic to, it’s ionic@1.7.7 /Users/yuri/npm/lib/node_modules/ionic
/Users/yuri/npm/bin/ionic -> /Users/yuri/npm/lib/node_modules/ionic/bin/ionic

But when I do which ionic the path is /usr/local/bin/ionic How to make sure that my globally used ionic command is using binary in /Users/yuri/npm/lib/node_modules/ionic/bin/ionic ?

Bump. Any suggestions?

had to uninstall ionic and set npm directory like so: npm config set prefix /usr/local before installing ionic again