user3780373
user3780373

Reputation:

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

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

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.

Upvotes: 0

Views: 6731

Answers (4)

HaC
HaC

Reputation: 950

I had to remove the appium folder as specified under which appium, ie

% which appium
/usr/local/bin/appium
% rm -rf /usr/local/bin/appium

After that I was able to successfully uninstall and reinstall latest appium:

% npm uninstall -g appium
up to date in 333ms
% npm install -g appium@latest

added 449 packages in 24s

57 packages are looking for funding
run `npm fund` for details
% appium -v
2.5.1

Upvotes: 1

Devyani gaikwad
Devyani gaikwad

Reputation: 1

To resolve issue, I deleted appium folder from root and installed latest appium version using npm install -g appium@version . Eg: npm install -g [email protected]

Upvotes: 0

user3780373
user3780373

Reputation:

Because I am unable to uninstall all the fragments of Appium 2.0, 1.22, node etc., I took the risk of installing the trialware PowerMyMac tool, and could able to clean all the software. I know it is not a solid solution and I won't suggest to others, but I was desperate and it did worked.

Upvotes: 0

valies
valies

Reputation: 96

Perhaps also uninstall appium 1.22, hoping all is cleaned up after that.

npm uninstall -g appium

Upvotes: 1

Related Questions