Nodejs+npm+bower installation configuration in the Windows environment

Source: Internet
Author: User

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"

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".

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

TIPS: If the MSI file fails to install, you need to start the command line as an administrator, instructions to install Nodejs

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.