Post navigation

React Native Expo

How to update the Expo CLI

While you are building your Expo app you will need to make sure you keep the Expo CLI updated, this post shows how to update the Expo CLI. If you are running your development build on an app you’ll also need to make sure you keep the Expo Go client updated too, links to which are included below. If you’re running your development build on an Android emulator it’s also worth keeping those updated.

When a new version of the Expo CLI has been released you’ll see a message something like this telling you you need to upgrade:

how to update Expo CLI

So to start to upgrade the Expo CLI, type:

npm install -g expo-cli

Once you’ve pressed return you’ll see a bunch of messages show up and it will whirr away for a good few minutes while it updates everything. Mine took a good 5 minutes and half way through it seemed to sit and do nothing – just leave it alone for a while, it is updating! Once it has finished updating you’ll see a message similar to the following, and you’ll see a new prompt.

expo update CLI complete

I’d recommend updating the Expo client at the same time either on the App Store – or for Android on Google Play –

Problems when upgrading the Expo CLI

People sometimes run into problems when upgrading the Expo CLI and as per this blog post and others it seems the answer is often to uninstall and reinstall the Expo CLI.