node is not a Web server you want it to be an HTTP server, you have to write your own installation with its built-in library: A node environment is finished, next, in the current directory, hold down SHIFT and right-click, choose to open the command line tool in the current directory. > node-v output version information to verify that the installation was successful. > node-h view Help, which lists the use of several simple instructions. The node command can be executed anywhere by writing the path D:\NodeJS into the path of the system environment variable. After the installation is complete, you can enter a new command "node". There are two different ways to use the "node" command. The first one without any parameters will open an interactive shell ">" (Repl:read-eval-print-loop), where you can execute JavaScript code. Git bash executes the following code to check out all of NPM's source and dependency code and install NPM with Msysgit. git clone--recursive git://github.com/isaacs/npm.git
CD NPM
Node Cli.js install NPM-GF before executing this code, make sure that the Node.exe is installed in the same way as Node.msi, or in the PATH environment variable. This command also adds NPM to the PATH environment variable and can then execute the NPM command anywhere. If you encounter permissions errors in your installation, make sure that the CMD command-line tool is running as an administrator. After the installation is successful, execute the following command:
Return:
This is done with NPM installed under the Windows platform. CMD to enter NPM detection is successful. Install with NPM module: npm install module-name;
Local Installation: The generated Node_modules folder is globally installed with the application sibling: for example, install Express (plus-G) NPM Install-g Express
Load: Require (' module-name '); Search: NPM search IRC; (Result contains module name and module description) NPM search socket Connect (space-delimited keyword) View documentation: NPM docs modul e-name; view BUG:NPM bugs module-name; View Module source code: NPM edit Module-name; (only in the project root that the module has loaded) Package.json file to specify the module to use with NPM Install to invoke.
{"Name": "Package", "Version": "0.0.1", "dependencies": {"underscore": "1.6.0"}}
1,node and NPM Installation