Windows under Node environment configuration

Source: Internet
Author: User

1. Download the appropriate version of node installation package on Node official website: http://nodejs.org/#download; The 6.5 latest version I downloaded;

2, the installation node, are the system default, has been installed down;

3. Enter node-v;npm-v in CMD to test whether node and NPM are installed;

4, Global folder settings, to create a new folder under Nodejs Node_global and Node_cache, in cmd input

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

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

5, configure the 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".

6. Enter NPM install bower-g at the command line, install bower;

7. Input node,

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

8. Enter NPM install express-g at the command line

9. Input node,

Require (' Express ') shown below indicates successful installation!

Windows under Node environment configuration

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.