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

What is the method of installing Node.js in Linux system

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

Share

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

This article mainly introduces the relevant knowledge of what is the method of installing Node.js in the Linux system, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value, I believe you will gain something after reading this article on the method of installing Node.js in the Linux system, let's take a look at it.

Introduction to nodejs: Node.js was released in May 2009 and developed by Ryan Dahl. It is a JavaScript runtime environment based on Chrome V8 engine. It uses an event-driven, non-blocking JavaScript model to allow JavaScript to run on the server-side development platform. It makes JavaScript a scripting language on a par with PHP, Python, Perl, Ruby and other server-side languages.

Node.js optimizes some special use cases and provides alternative API to make V8 run better in non-browser environment. V8 engine executes Javascript very fast and has very good performance. The platform based on Chrome JavaScript runtime is used to build web applications with fast response and easy to expand.

Specific steps for installing nodejs in Linux system: download nodejs from the official website and open the official website https://nodejs.org/en/download/

Copy to get the link, download nodejs

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

Tar-xvf node-v10.15.3-linux-x64.tar.xz delete compressed package

Rm node-v10.15.3-linux-x64.tar.xz configuration environment variable editing

Vim. Bash _ profile # adds an environment variable export NODE_HOME=/node-v10.15.3-linux-x64 export PATH=$PATH:$NODE_HOME/bin export NODE_PATH=$NODE_HOME/lib/node_modules to .bash _ profile to save. Bash_profile

: wq submission

Source .bash _ profile checks whether the installation is successful

Node-v npn-v with a version number indicates success

This is the end of the article on "how to install Node.js in a Linux system". Thank you for reading! I believe you all have a certain understanding of "what is the method of installing Node.js in the Linux system". If you want to learn more, you are welcome to follow the industry information channel.

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