node. JS Environment Build &&NPM Installation

Source: Internet
Author: User

node. JS Environment Building

  First step : Go to the official website and click on the left side of the download directly, as it prompts "Recommended for most Users".

 

  The second step: the download is the MSI file, directly double-click the installation, the next can be installed.

  

  Step Three: at this point, we can find the most recently added two items in "Start" to create a shortcut to the desktop for easy use.

  

  Fourth step: After the installation is complete, press win+r, then enter CMD after entering the DOS window, enter the NODE-V directly, then we can see the version number you installed, indicating that the installation is successful, as follows:

  

  Fifth Step:NPM installation. The current nodejs are already integrated with NPM, so there is no need to install them. To determine that NPM was successfully installed, we can enter Npm-v as a fourth step , and you can also see the version number you installed, as shown below:

  

It is clear that the V in this and fourth steps is the meaning of version.

So what is NPM?

NPM is a package management tool that is installed with Nodejs to address many of the issues in Nodejs code deployment, with the following common usage scenarios:

    1. Allows users to download third-party packages written by others from the NPM server for local use.
    2. Allows users to download and install command-line programs written by others from the NPM server for local use.
    3. Allows users to upload their own packages or command-line programs to the NPM server for others to use.

For more information about NPM please click here

  

  Sixth step: in fact, the normal node environment has been built. Then we can enter Console.log (' Hello World ').

Method One: We can win+r first, then enter the CMD, enter the node after entering, and finally input console.log (' Hello World ') can be successfully output.

Method Two: We can double-click into this environment, directly enter Console.log (' Hello World ').

Method Three: We can double-click into this environment, the first input node into the node environment, and then enter Console.log (' Hello World '), can be successfully output.

Finally, let's go over the issue of NPM Configuration Express in detail and refer to the blog post http://xiaoyaojones.blog.163.com/blog/static/28370125201351501113581/.

  

  

Node. JS Environment Build &&NPM installation

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.