Not able to uninstall Appium 2.0.0-beta.46 on mac Monterey

I used npm to install appium 2.0.0-beta.46.
After that I installed appium 1.22, but the appium -v still shows 2.0.0-beta.46.
So I tried various options

Plus

  • npm cache clean --force

But still, I am getting
$ appium -v
2.0.0-beta.46

When I did
$which appium, I get
/usr/local/bin/appium

BTW, when I ran
$npm -g list
/Users//.nvm/versions/node/v19.0.0/lib
├── [email protected]
├── [email protected]
└── [email protected]

I rebooted the system twice, but no use.
What is the best way to do the uninstall the 2.0.0-beta.46 and go back to 1.22 ?

Appreciate the help

personally just running: npm uninstall appium worked for me fine with the latest versions as well.
also after you uninstall. try to run which appium and make sure it is not available. as well, you can try to delete appium’s home folder before you reinstall; its path is: ~/.appium

1 Like