Nodejs Uninstall under Mac

Source: Internet
Author: User

    1. Install the installation package that is installed on the node official website, and install the node with the installation package. You should be able to use the command line to uninstall:

      Enter the following command at the terminal:

      sudo rm-rf/usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}

      1. Delete all node and node_modules in/usr/local/lib
      2. Delete all the node and Node_modules folders in the/usr/local/lib
      3. If you are installing from brew, run brew uninstall node
      4. Check all the local, LIB, or include folders in ~/to delete all node and node_modules
      5. In/usr/local/bin, delete all the node's executable files
      6. Finally run the following code: (There may be a difference in the specific installation path, find ~-name "Node" can be found all
    2. sudo rm /usr/local/bin/npmsudo rm /usr/local/share/man/man1/node.1sudo rm /usr/local/lib/dtrace/node.dsudo rm -rf ~/.npmsudo rm -rf ~/.node-gypsudo rm /opt/local/bin/nodesudo rm /opt/local/include/nodesudo rm -rf /opt/local/lib/node_modules

Nodejs Uninstall 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.