node. js Uninstall Method collection under Mac

Source: Internet
Author: User

How brew is Installed

Directly through a command

Brew Uninstall Nodejs
Download PKG installation package on official website

By this command

sudo rm-rf/usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}
Other ways to clean uninstall

Go to this URL to download the sh file https://github.com/jesseyu/uninstallNodejs/blob/master/uninstallNodejs.sh

The contents are:

#!/bin//var/db/receipts/org.nodejs.pkg.bom \| While read  I do/usr/local/$  /usr/local/lib/node      /usr/local/lib/node_modules      /var/db/receipts/org.nodejs.*

Downloaded files need to modify the permissions, enter:

chmod 777 uninstallnodejs.sh

Then run this file at the terminal

Reference: Http://www.tuicool.com/articles/ZreUBr

node. js Uninstall Method collection under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.