Install node. js first switch to root user installation Openssl-devel
[Plain]View PlainCopy
- Su-
- 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
- Cd/usr/local/src
- wget http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
- Tar zxvf node-v0.10.29.tar.gz
- CD node-v0.10.29
- ./configure
- Make
- Make install
Check the version number to see if the installation was successful
[Plain]View PlainCopy
- Node-v
- v0.10.29
Uninstall node. js with its own package management first delete
[Plain]View PlainCopy
- 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
- Find ~/-name node
- 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