1. Download the node. JS official Windows Edition program:
https://nodejs.org/download/
Starting with 0.6.1, node. JS provides two installation options on the Windows platform, the. msi installation file, and an. exe executable file.
I have chosen. EXE file. Because. In addition to copying Node.exe to the C:\Program file (x86) \ Directory and modifying the system path, the MSI installation file does not see any other effect.
I am using a version of V0.12.5:https://nodejs.org/dist/v0.12.5/node.exe
2. Double-click Node.exe installation:
Next after the installation is complete
3. Download the NPM source code:
Https://github.com/isaacs/npm/tags
Note here that it is not necessary to install the latest version, I choose 2.9.1, but be sure to download the zip file in this format
4. Extract the NPM source code into the D:\NPMJS directory.
Complete the installation of NPM by performing the following actions in the Command Prompt window:
D:\>CD NPMJS
D:\npmjs>node Cli.js INSTALL-GF
Other than that:
Node Cli.js install NPM-GF//The latest version of NPM can be installed
node Cli.js install [email protected]-GF//Can install the specified version of NPM
Both of these methods are downloaded and installed from the code base through the network, but the codebase generally retains only the last two versions.
5, Installation Apidocjs
NPM Install Apidoc-g
6. Install Express:
NPM Install EXPRESS-G//Installing the latest version of Express
NPM install [email protected]//installation of the specified version of Express
NPM Remove Express-g//Delete Express
For more information on how to use NPM, please refer to the NPM official website: http://npmjs.org
The deployment is complete.
D:\>node-v
v0.6.2
D:\>npm-v
1.0.104
D:\>express-v
2.5.1
d:\>express Hello//Create exrpess Project
D:\>CD Hello
D:\hello>node app.js//start
Open in Browser: http://localhost:3000, view the results.
Install Apidocjs under Windows