Reputation:
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
npm uninstall -g [email protected]
sudo npm uninstall -g [email protected]
sudo npm uninstall -g appium@beta
sudo npm uninstall -g appium@next 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
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
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
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
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
Reputation: 96
Perhaps also uninstall appium 1.22, hoping all is cleaned up after that.
npm uninstall -g appium
Upvotes: 1