Installing CentOS7 NodeJS source compilation / v12.16.1 LTS
0. Installation environment (g ++ 6.3.x) CentOS 7 has gcc version 4.8 installed by default. However, nodejs build environment requires version 6.3 or higher. Please refer to the following link to install version 6.3. https://lucidmaj7.tistory.com/144 Installing CentOS7 GCC 6.x devtoolset-6 Installing CentOS7 GCC 6.x Installing GCC on CentOS 7 will install version 4.8.5. In some cases, you may need to install a higher version. The following is how to install GCC, G ++ 6.x version. $ sudo yum install .. lucidmaj7.tistory.com 1. Download NodeJS source Connect to the NodeJS homepage and download the source of the LTS version using the wget command. https://nodejs.org/en/download/ Download | Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org [root@localhost ~] # wget https: //nodejs.org/dist/v12.16.1/node-v12.16.1.tar.gz 2. Decompression Unzip ...