Home  >  Article  >  Web Front-end  >  Introduction to Node.js and its installation tutorial

Introduction to Node.js and its installation tutorial

韦小宝
韦小宝Original
2018-03-14 18:32:061210browse

1. What is Node.js

Node.js is a JavaScript running environment based on the Chrome V8 engine. Node.js uses an event-driven, non-blocking I/O model, making it lightweight and efficient. Node.js’s package manager npm is the world’s largest open source library ecosystem. This article mainly explains the installation tutorial of Node.js. First, let’s understand what Node.js is. Then explain the specific installation tutorial.

Features:

1. Event driven.

2. Non-blocking I/O

3. Lightweight and efficient.

4. Open source is easy to maintain.

Advantages:

1. Solve the problem of high system concurrency

2. Suitable for I/O intensive applications application, which can solve I/O blocking problems.

Disadvantages:

1. Not suitable for CPU-intensive applications because JavaScript is single-threaded.

2. Since Node.js is a single process and single thread, the reliability is low. Once a certain link of the code crashes, it will affect the whole body.

3. Since Node.js is open source, it updates quickly and compatibility issues may occur.

Applicable scenarios:

1. Suitable for development using RESTful API style.

2. UI layer of web application.

2. Installation tutorial

  1. Log in to the official website: https://nodejs.org, and select the appropriate version on the download interface. This article uses node- for Windows 64 systems. v8.10.0-x64.msi2. Click the installation file to install.



##3. Keep clicking next to install by default. When the page shown below appears, the installation is complete


4. Configuration: If it is installed by default, no configuration is required. If you change the installation directory, you need to add the installation directory to the path variable in the system properties system variable.


##Related recommendations:

Node. js novice tutorial (1)

Node.js novice tutorial (2)

Node.js installation and environment configuration Graphic tutorial

The above is the detailed content of Introduction to Node.js and its installation tutorial. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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