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.
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 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!