Advertisement
Virajsinh

Uninstall Node From Apple Mac

Nov 8th, 2022 (edited)
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. Uninstall Node From Apple Mac
  2.  
  3. Reference URL : https://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x
  4.  
  5. sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp
  6. sudo rm -rf /opt/local/bin/node /opt/local/include/node /opt/local/lib/node_modules
  7. sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node.1 /usr/local/lib/dtrace/node.d
  8.  
  9. sudo rm -rf ~/.npm ~/.nvm ~/node_modules ~/.node-gyp ~/.npmrc ~/.node_repl_history
  10. sudo rm -rf /usr/local/bin/npm /usr/local/bin/node-debug /usr/local/bin/node /usr/local/bin/node-gyp
  11. sudo rm -rf /usr/local/share/man/man1/node* /usr/local/share/man/man1/npm*
  12. sudo rm -rf /usr/local/include/node /usr/local/include/node_modules
  13. sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /usr/local/lib/dtrace/node.d
  14. sudo rm -rf /opt/local/include/node /opt/local/bin/node /opt/local/lib/node
  15. sudo rm -rf /usr/local/share/doc/node
  16. sudo rm -rf /usr/local/share/systemtap/tapset/node.stp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement