How to uninstall the old version of expo and install new version of it?

Viewed 433

I tried the below command

  • npm -g uninstall expo-cli --save

After running the above command if I run expo --verion it shows the old version of expo

It shows the following error

  • found 13 vulnerabilities (9 low, 4 high) run npm audit fix to fix them, or npm audit for details
1 Answers

Try the following

1.npm cache clean -f

2.yarn upgrade

3.npm upgrade

4.npm install

If this doesn't work try edit package.json:

{
  "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
  "expo": "^33.0.0",
  "react": "16.8.3"
} 

Then

npm install

let me know if this works for you

Related