My truffle got installed in usr/bin/truffle, how do I uninstall it,

npm uninstall/remove 

is not working, please help.


  • 1
    using sudo npm uninstall -g truffle i was able to uninstall, I did that earlier but i don't know why it didn't happened , but this time is was successful – sv2011 Apr 18 '18 at 20:18
  • it doesn't work so stop upvote yourself – Vyachaslav Gerchicov Aug 23 '18 at 7:57

I was unable to uninstall using npm uninstall -g so this is what I had to do:

$ which truffle

$ rm -f /usr/local/bin/truffle

Now I can reinstall the latest truffle if needed:

$ npm i -g truffle@5.0.0-beta.2
/Users/mota/.nvm/versions/node/v10.13.0/bin/truffle -> /Users/mota/.nvm/versions/node/v10.13.0/lib/node_modules/truffle/build/cli.bundled.js
+ truffle@5.0.0-beta.2
updated 1 package in 3.081s

$ which truffle
| improve this answer | |

"sudo npm uninstall -g truffle".It worked for me.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.