About node. JS Installation and Removal

Source: Internet
Author: User
Tags install openssl install node

Install node. js first switch to root user installation Openssl-devel [Plain]View PlainCopy 
    1. Su-
    2. Yum Install Openssl-devel

Download the source code yourself compile the tar.gz package in the following code is based on the node. JS official web version, for example, I am now the latest is 0.10.29 [Plain]View PlainCopy 
    1. Cd/usr/local/src
    2. wget http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
    3. Tar zxvf node-v0.10.29.tar.gz
    4. CD node-v0.10.29
    5. ./configure
    6. Make
    7. Make install


Check the version number to see if the installation was successful
[Plain]View PlainCopy 
    1. Node-v
    2. v0.10.29


Uninstall node. js with its own package management first delete

[Plain]View PlainCopy 
    1. Yum Remove Nodejs npm-y

And so on, see what package management your operating system uses, such as launching if you are using brew to install node, you need to remove it first.
Manually remove residues
Go to/usr/local/lib Delete all node and Node_modules folders
Go to/usr/local/include Delete all node and Node_modules folders

Check the "local" "Lib" "include" folder in the ~ folder, and then delete all the "node" and "Node_modules" folders inside.

You can use the following command to find

[Plain]View PlainCopy 
    1. Find ~/-name node
    2. Find ~/-name node_modules

Go to/usr/local/bin Delete node's executable file

The following steps are optional:
Delete:/USR/LOCAL/BIN/NPM
Delete:/usr/local/share/man/man1/node.1
Delete:/USR/LOCAL/LIB/DTRACE/NODE.D
Delete: RM-RF/HOME/[HOMEDIR]/.NPM
Delete: RM-RF/HOME/ROOT/.NPM

About node. JS Installation and Removal

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.