Home  >  Article  >  Web Front-end  >  Node.js plug-in installation graphic tutorial_node.js

Node.js plug-in installation graphic tutorial_node.js

WBOY
WBOYOriginal
2016-05-16 15:01:512201browse

Introduction to Node.js

Node.js is a Javascript runtime. In fact, it encapsulates the Google V8 engine. The V8 engine executes Javascript very quickly and has very good performance. Node.js optimizes some special use cases and provides alternative APIs to make V8 run better in non-browser environments.

Node.js is a platform built on the Chrome JavaScript runtime, which is used to easily build web applications with fast response speed and easy expansion. Node.js uses an event-driven, non-blocking I/O model to be lightweight and efficient, making it ideal for data-intensive real-time applications running on distributed devices.

Now that you have an understanding of the basic concepts of node.js, let me introduce to you how to install the node.js plug-in.

Among the eclipse plug-ins, the more well-known node.js plug-in is nodeclipse.

From HBuilder6.3 onwards, in Tools-Plug-in Installation, you can directly select the nodeclipse plug-in installation.

Restart HBuilder after installation is complete

Create a new node project: Click on the menu File→New→Others as shown below

5. Select the nodejs project type you want to create and create a new project
6. Prompt node.js

in js file

Note: The editor of nodeclipse is different from the editor of HBuilder. However, node.js and web js both have .js extension. When opening a js file, you need to know which js editor to use to open it.

Generally speaking, since nodeclipse is installed later, the .js file is opened in the node editor by default, and HBuilder's syntax assistant is not prompted in this editor.

To change the opening method, right-click the js file in the project manager - Open with, select the editor you want to open.

You can also set a permanent file association in the menu, and you can set the method you use most to open it. It is recommended to set the .js file to be opened with HBuilder's js editor by default, and then right-click when opening the node.js js file and select the nodeclipse editor to open it.

Historical material archive:

The method to install the nodeclipse plug-in for versions below HBuilder 6.3 is as follows:

Foreword, nodeclipse is based on jsdt, HBuilder does not have built-in jsdt. If you want to install nodeclipse, you must first install the jsdt plug-in.

Install JSDT

1. Click Tools → Plug-in Installation → Manually install the eclipse plug-in, and click "Available Software Sites" as shown below

2. Check indigo (Note: After checking, HBuilder will check whether the installed plug-in of indigo has been upgraded when it starts, which will cause the software to start too slowly or be stuck for a long time after starting, so after installing jdt Please uncheck this checkbox again) as shown below

3. After clicking OK, click the drop-down arrow to select Indigo's site as shown below, and then wait for loading (this process is a bit long, if a proxy is set, it will speed up the loading)

4. After loading, find programming languages ​​as shown below

5. Check JavaScript Development Tools under programming languages ​​as shown below

6. Click Next, accept the license agreement and install. Restart after installation is complete

Install nodeclipse

1. Click Tools → Plug-in Installation → Browse the eclipse plug-in market → Search node.js → Find nodeclipse in the search results as shown below

2. Click install in the picture above to start loading. After loading, click Next to accept the license agreement and wait for the installation to complete

3. Restart HBuilder after installation is complete

4. Create a new node project: click on the menu File→New→Others as shown below

5. Select the nodejs project type you want to create and create a new project

6. Prompt node.js in js file

The above is the graphic tutorial for Node.js plug-in installation introduced by the editor. I hope it will be helpful to everyone! If you want to know more information, please pay attention to the Script House website. This website has new content updated every day. The editor here would like to thank you very much for your support of the Script House 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