How to install nodejs using linux command

藏色散人
Release: 2023-01-11 09:20:07
Original
3972 people have browsed it

How to install nodejs with linux command: 1. Select a suitable nodejs version to download; 2. Upload the installation package to Just specify the location.

How to install nodejs using linux command

The operating environment of this article: linux5.9.8 system, nodejs version 10.6, Dell G3 computer.

How to install nodejs using linux command?

Installing Nodejs on Linux system

1. Download the installation file

1. Download address: http://nodejs.cn/download/

2. Choose a suitable 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 unzip it


tar -xvf node-v10.6.0-linux-x64.tar.xz
Copy after login

2. Rename the folder


mv node-v10.6.0-linux-x64 nodejs
Copy after login

3. Make it global by establishing a soft connection


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

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


node -v2 v10.6.0
Copy after login

The above is the detailed content of How to install nodejs using linux command. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!