Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to install node js in CentOS

Shulou Source: shulou.com Published: 2022-06-02 10:20:17 10月02日 Update

In this issue, the editor will bring you about how to install node js in CentOS. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Download the source code Compile and install wget https://nodejs.org/dist/v8.9.4/node-v8.9.4.tar.gz#wget https://nodejs.org/dist/v10.16.0/node-v10.16.0.tar.gz extract: tar zxvf node-v8.9.4.tar.gz enter directory: cd node-v8.9.4 configuration:. / configure compile: make installation: sudo make install check: # node--versionv8.9.4# npm -- version5.6.0 is installed using officially compiled binary packets

Go to the download link on the official website, go to the link to the version you want to download in the list, select the version you want to download (*-linux-x64.tar.gz) similar to the link below, right-click and copy the download link. Enter the user's home directory, use the wget command to download, and paste the download path to the command.

Wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz

After the download is complete, use the following command to extract to the / usr/local directory and install:

Sudo tar-- strip-components 1-xvf node-v*-C / usr/local above is how to install node js in the CentOS shared by Xiaobian. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Links commands directories compilation content version analysis professional small and medium binary content-rich official that is head of household data articles more source code knowledge articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MariaDB NVidia Xiaomi Microsoft