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, 2018 at 20:18
  • it doesn't work so stop upvote yourself Aug 23, 2018 at 7:57

2 Answers 2


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

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

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.