Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install nodejs using the linux command

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report