1,node and NPM Installation

Source: Internet
Author: User
Tags socket connect

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

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.