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