Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo cli update not happening

I am trying to upgrade expo-cli from 2.11 to 2.18 but npm i -g expo-cli@latest still points to the old version.

when I typed expo-cli -V it resulted:

2.11 ...so naturally npm i -g expo-cli@latest will grab the latest version and install it but still expo-cli -v is still pointing to the old version.

I remember installing packages in bash level is a no go operation.

these are some images to put it all into context: enter image description here enter image description here

Update: Removed Nodes modules as suggested in the first answer, and that lead to npm removal both expo and expo-cli are not found with the command where enter image description here

like image 606
oflcad Avatar asked May 29 '19 09:05

oflcad


Video Answer


1 Answers

For mac users (linux should be very similar):

Find your expo-cli version:

which expo-cli

For me it yielded:

/Users/username/.config/yarn/global/node_modules/.bin/expo-cli

Remove this outdated version:

rm -rf /Users/username/.config/yarn/global/node_modules/.bin/expo-cli

Check that you are using the latest version:

expo-cli --version
like image 106
alphablend.dev Avatar answered Sep 21 '22 07:09

alphablend.dev