Home > Web Front-end > JS Tutorial > body text

How to compile and install nodejs using source code?

青灯夜游
Release: 2020-09-11 10:16:40
forward
4444 people have browsed it

How to compile and install nodejs using source code?

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
Copy after login

Install gcc and gcc-c to be used for compilation

# yum install gcc gcc-c++
Copy after login

Unzip and Compile

# cd /usr/local/src
# tar zxvf node-v6.10.0.tar.gz
# cd node-v6.10.0
# ./configure
# make && make install
Copy after login

Check version

#node  –v
v6.10.0
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template