Node. js Development Guide: basic introduction to Node. js (1)
What is Node. js?
According to Node. description of the official js website, "Node. js is a platform built on the Chrome JavaScript runtime environment. It is designed to easily create network applications that run fast and have scalability. Node. js uses the event-driven, non-blocking I/O model to provide lightweight and efficient features. It is very suitable for data-intensive real-time applications running on cross-distributed devices ." Before learning about Node. js, read the article "What is Node and js" to learn more about Node. js definitions.
Node. js provides a complete set of solutions for server-side applications, such as Web platforms, and can communicate with other systems, including databases, LDAP, and any traditional applications. You can develop Node. js in multiple scenarios.
Installation Process
Node. js can run on Windows, Linux, and Mac platforms. It provides 32-bit and 64-bit platforms. To install Node. js in Ubuntu Linux, you need to use the console and write the following script:
- sudo apt-get install python-software-properties
- sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update
- sudo apt-get install nodejs npm
To install Node. js on other Linux platforms, we recommend that you click here to access GitHub for complete instructions.
If you are a Windows user, you can use the installation file to install Node. js. We can download the installation file from the official Node. js website. Based on the actual platform type, you can download the corresponding. MSI file, run it, and enter the installation dialog box as shown in:
Complete the process step by step according to the installation instructions.
After the installation is complete, a Node. js icon is added to the Windows menu. If you click this icon in the menu, the Node. js console will be enabled immediately.
You can manually run the Node. js console at the Windows Command Prompt (CMD. On the command prompt page, run the following command:
- node
In this case, the interface will respond to the operation as the Node. js console.