Nodejs+npm+bower installation configuration in the Windows environment

Source: Internet
Author: User

node. JS is a platform built on the chrome JavaScript runtime to easily build fast, easy-to-scale Web applications · With event-driven, node. js, the non-blocking I/O model becomes lightweight and efficient, making it ideal for data-intensive, real-time applications running on distributed devices.

Baidu Experience: jingyan.baidu.com

Method/Step
  1. 1

    Go to nodejs official website download software (nodejs.org),

  2. 2

    When the download is complete, double-click the default installation. The Setup program automatically adds environment variables

  3. 3

    Detects if the Nodejs is installed successfully. Open cmd command line input node-v display the current version number

  4. 4

    Check if NPM is installed. Since NPM has been integrated with the new version of Nodejs, NPM has been installed as well. You can also use the cmd command line to type Npm-v

  5. 5

    NPM as a Nodejs module management, I did not look at the data in a systematic way, resulting in the installation of the configuration module took a long detour, so it is necessary to list to record. We will first configure the NPM Global Module storage path and the cache path, for example, I would like to put the above two folders in the Nodejs home directory, the Nodejs under the establishment of "Node_global" and "Node_cache" two folder. We'll just type two lines of command in CMD:

    NPM config set prefix "D:\Program files\nodejs\node_global"

    And

    NPM config set cache "D:\Program Files\nodejs\node_cache"

  6. 6

    The next step is critical, and we need to set up system variables. Go to my Computer → properties → advanced → environment variables. Under System variables, create a new "Node_path" and enter "D:\Program files\nodejs\node_global\node_modules".

  7. 7

    Installing bower, NPM install bower-g; -G indicates global

    Input node,

    Require (' bower ') shows that the installation was successful!

Nodejs+npm+bower installation configuration in the Windows environment

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.