node. JS Environment Building
First step : Go to the official website and click on the left side of the download directly, as it prompts "Recommended for most Users".
The second step: the download is the MSI file, directly double-click the installation, the next can be installed.
Step Three: at this point, we can find the most recently added two items in "Start" to create a shortcut to the desktop for easy use.
Fourth step: After the installation is complete, press win+r, then enter CMD after entering the DOS window, enter the NODE-V directly, then we can see the version number you installed, indicating that the installation is successful, as follows:
Fifth Step:NPM installation. The current nodejs are already integrated with NPM, so there is no need to install them. To determine that NPM was successfully installed, we can enter Npm-v as a fourth step , and you can also see the version number you installed, as shown below:
It is clear that the V in this and fourth steps is the meaning of version.
So what is NPM?
NPM is a package management tool that is installed with Nodejs to address many of the issues in Nodejs code deployment, with the following common usage scenarios:
- Allows users to download third-party packages written by others from the NPM server for local use.
- Allows users to download and install command-line programs written by others from the NPM server for local use.
- Allows users to upload their own packages or command-line programs to the NPM server for others to use.
For more information about NPM please click here
Sixth step: in fact, the normal node environment has been built. Then we can enter Console.log (' Hello World ').
Method One: We can win+r first, then enter the CMD, enter the node after entering, and finally input console.log (' Hello World ') can be successfully output.
Method Two: We can double-click into this environment, directly enter Console.log (' Hello World ').
Method Three: We can double-click into this environment, the first input node into the node environment, and then enter Console.log (' Hello World '), can be successfully output.
Finally, let's go over the issue of NPM Configuration Express in detail and refer to the blog post http://xiaoyaojones.blog.163.com/blog/static/28370125201351501113581/.
Node. JS Environment Build &&NPM installation