Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install nodejs using the linux command

Shulou Source: shulou.com Published: 2022-06-03 14:19:57 11月14日 Update

This article introduces you how to use linux command to install nodejs, the content is very detailed, interested friends can refer to reference, I hope to help you. Linux command to install nodejs method: 1, select a suitable nodejs version download;2, through the "tar -xvf node-v10.6.0-linux-x64.tar.xz" command will install the package to the specified location.

Operating environment of this article: Windows 7 system, nodejs version 10.6, Dell G3 computer.

How do I install nodejs?

Linux system installation Nodejs

1. Download installation files

1. Download address: nodejs.cn/download/

2. Choose an appropriate version to download

2. Installation steps

1. Upload the installation package to the specified location (I am used to putting it in: /usr/local/application/directory) and extract it.

tar -xvf node-v10.6.0-linux-x64.tar.xz

2. Rename folders

mv node-v10.6.0-linux-x64 nodejs

3. Become global by establishing soft connections

ln -s /usr/local/application/nodejs/bin/npm /usr/local/bin/2 ln -s /usr/local/application/nodejs/bin/node /usr/local/bin/

4, check whether the installation is successful, command: node-v

node -v2 v10.6.0 on how to use linux command to install nodejs to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Tags: Commands appropriate location content files more version system help selection good success global interest address buddy partner file download folder article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Linux Docker Huawei Shulou Tech Info