Installing the node. JS process under Windows

Source: Internet
Author: User

The online version has been very, very many, but it is very troublesome to search every time.

Become your own things, direct positioning, search-free, why not ~

First of all, of course, the last officer of the Net (http://nodejs.org/) Download the installation package, for personal use, habitually with the latest version of it, but if it is within the enterprise, may for some reason, not suitable for a high version, I look at the Do ~

Then, the fool installs (I am the fool to even the path is not lazy to change the person, what? What if the system hangs up and wants to reload? Then re-install Bai, how big the matter ... )

After the installation (I installed the v0.12.0 version), you can find the Nodejs folder in the installation directory just now, find a. npmrc file under the C:\Users\Administrator path, this is the node. JS configuration file

The installation will also help you to match the environment variables, so that you open the command line tool in any directory can execute the node statement, yes, good enough ~

Next, we'll go with the Configuration Global module installation path to the E:\node\node-global folder, NPM cache to the E:\node\node-cache folder.

Set "E : \node\node-global "  Set"E:\node\node-cache"

The path can be based on your preference, but it must not be a C drive. Because the system hangs, node. js Reload is trivial, but a lot of feature modules are not trivial to download and install.

With the global module installation path and cache path, if we want to put the node program installed on a computer and related resources (global module, module cache, etc.) to other machines, then we have a good copy of the entire directory to go, Then on that machine on-demand configuration under the relevant path is done, the previous installation of the module cache has, other machines can install the module without the Internet ~ ~

Installing the node. JS process under Windows

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.