Video tutorial recommendation: node js tutorial
A site friend was reading the VisualEditor installation notes I wrote , encountered a NodeJs version problem.
Briefly describe my installation process. I was using v6.9.5 at the time, but now it seems that the latest version is v6.10.0, which is actually pretty much the same.
First go to the official website of Node.js https://nodejs.org/en/download/ and find some download links of Source Code.
Download source code
# cd /usr/local/src # wget https://nodejs.org/dist/v6.10.0/node-v6.10.0.tar.gz
Install gcc and gcc-c to be used for compilation
# yum install gcc gcc-c++
Unzip and Compile
# cd /usr/local/src # tar zxvf node-v6.10.0.tar.gz # cd node-v6.10.0 # ./configure # make && make install
Check version
#node –v v6.10.0
For more programming-related knowledge, please visit: Programming Teaching! !
The above is the detailed content of How to compile and install nodejs using source code?. For more information, please follow other related articles on the PHP Chinese website!