Node learning Note (1)--Introduction and installation of the node. JS Development environment

Source: Internet
Author: User

    • Brief introduction

node. JS is a platform that lets JavaScript out of the browser running on the server, not the language;

The JavaScript engine used by node. JS is a V8 from Google Chrome; JavaScript compatibility issues that run outside the browser without having to worry about headaches

The use of single-threaded, asynchronous IO and event-driven design to achieve high concurrency (asynchronous events also to some extent increased the difficulty of development and debugging);

node. JS has an HTTP server built in, so it's good news for web development;

Home: http://nodejs.org/
  
English api:http://nodejs.org/api/ (latest)
  
Chinese api:http://nodeapi.ucdok.com/#/api/

    • Installation

Relatively simple installation in a Windows environment

  http://nodejs.org/download/

Link to download the corresponding operating system installation files (install the latest version on the line)

Follow the prompts, until the installation succeeds, you can see (C:\Program files\nodejs) under the default installation path, and the default path can be modified at the time of installation.

After successful installation, in command prompt input:node-v View the installation version, the output version is installed successfully

    • About NPM

Node pageaged Modules https://npmjs.org/(NPM) is included in Windows node. JS installation package installation. This node. JS itself has a basic module, which NPM can install a rich node. JS Library to complete the actual development requirements.

  Common Command Description:

View Help

  NPM Help or npm h

Mounting module

  NPM Intstall <module name>

Install the module in the Global Environment (-G: Enable global mode)

  NPM install-g <module name>

MORE: https://npmjs.org/doc/install.html

Uninstalling the module

  NPM Uninstall <moudle name>

Displays the modules installed in the current directory

  NPM List

  

After successful installation, NPM and node. JS paths are added separately in the path user environment variable and system environment

Node learning Note (1)--Introduction and installation of the node. JS Development environment

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.