Technology Sharing

How to install Node.js on Windows?

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

Node.js is an open source, cross-platform JavaScript runtime environment created by Ryan Dahl in 2009. It allows developers to run JavaScript code on the server side. Node.js is built on the Chrome V8 JavaScript engine and its design goal is to provide a way to build scalable network applications in a non-blocking way.

main feature:

  1. Event-driven: Node.js uses event loops and callback functions to handle asynchronous events, which makes it very suitable for handling a large number of concurrent connections.

  2. Non-blocking I/O: Node.js's I/O operations are non-blocking, which means that Node.js can continue to execute other code even while waiting for I/O operations to complete.

  3. Single thread: Although Node.js is single-threaded, it can handle multitasking efficiently through event loops and callback functions.

  4. NPM:Node.js has a huge package manager npm, which is the world's largest software registry with more than one million packages.

  5. Cross-platform: Node.js can run on multiple platforms, including Windows, Linux, and macOS.

  6. Suitable for building various types of applications:From web servers to command line tools, Node.js can be used to build various types of applications.

  7. Modularity:Node.js uses the CommonJS module system, allowing developers to easily build and reuse code.

  8. Community Driven: Node.js has an active developer community that continues to drive its development and innovation.

scenes to be used:

  • Web application and API development
  • Real-time applications (such as chat rooms)
  • Command Line Tools
  • Network services and applications
  • Data Stream Processing
  • Internet of Things (IoT) Devices

installation method

1. Open Node's official website:https://nodejs.org/zh-cn
2. Click the Download Node.js button, then double-click the MSI package to start the installation.
insert image description here
3. After opening, this is the installation interface, click Next.
insert image description here
4. Check I agree, then click Next.insert image description here
5. Select the installation path.
insert image description hereinsert image description here
6. Click Next.
insert image description here
7. Click Next.
insert image description here8.install.
insert image description here
9. Installation is complete.
insert image description here

Verify that the installation is successful

重要的事情三遍!!!No need to configure the environment, just open CMD and run node -v Just check the version number of node.
重要的事情三遍!!!No need to configure the environment, just open CMD and run node -v Just check the version number of node.
重要的事情三遍!!!No need to configure the environment, just open CMD and run node -v Just check the version number of node.
insert image description here


Now that Node.js is installed, let's start using it.