Detailed steps for installing Node. js in Windows

Source: Internet
Author: User
Tags install node

Detailed steps for installing Node. js in Windows

Preface

Recently, Paypal and Netflix announced the migration to Node. js, the server-side Javascript platform has proved its value in the enterprise field. this is a small step for Node and a huge leap for Javascript! From. NET, Java, PHP, Ruby on Rails and programmers in more technical fields, all the server-side programmers will gather on this platform. as a major player like Yahoo, Walmart, and Oracle, Node is getting rid of its long-standing bad reputation for being immature and unstable. in this article, I will show you how to install Node in the Window environment. how easy is js.

1. Visit the official website of Node. js

Node. js official website address: https://nodejs.org/en /. For example:

Node. js provides two official versions: long-term support and the latest version. We recommend that you download the long-term supported version because it is more stable. For example:

Select a long-term supported version (click the button above) to download the Mac installation package. For example:

2. Install the Node. js Environment

Double-click the Node. js Installation File to go to the Node. js installation interface. For example:

Click Next in the lower-right corner to continue to install the Node. js environment. For example:

As shown in, the official "software license agreement" of Node. js is displayed ".

Select "I accept the terms in the License Agreement" to agree to the Node. js software License Agreement. For example:

Click Next to continue to install the Node. js environment. For example:

As shown in, we recommend that you use the default path to customize the installation path of the Node. js environment.

If you customize the installation path, note that the path cannot contain Chinese characters or spaces, which may cause garbled characters.

Click Next to continue to install the Node. js environment. For example:

As shown in, customize the components for installing the Node. js environment. We recommend that you install all components by default.

Click Next to continue to install the Node. js environment. For example:

As shown in, check whether the Node. js environment is installed. (This step is mainly to confirm the previous settings)

Click the Install button to automatically Install the Node. js environment. For example:

Wait until the Node. js environment is automatically installed, for example:

As shown in, click Finish to end the installation process of the Node. js environment.

3. Verify that Node. js is successfully installed.

Run the "command line" program in Windows, such:

Run the following command in the terminal program to verify whether the Node. js environment has been installed successfully.

node -v

If a prompt is displayed in the "command line" program, the Node. js environment is successfully installed. For example:

Note:node -v Command to view the version of the current Node. js environment.

4. Verify that the npm Package Manager is available

Run the "command line" program in Windows, such:

In the "command line" program, enter the following command to verify whether the npm Package Manager is available.

npm -v

If a prompt is displayed in the "command line" program, the npm Package Manager is available. For example:

Note:npm -vCommand to view the current npm Package Manager version.

Summary

The above is all the content of this article. I hope the content of this article will help you in your study or work. If you have any questions, please leave a message.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.