To create a Nodejs project using the cmd command line
1) under DOS CD go to the path where you want to create the project.
2) mkdir sing (Create a Sing folder)
3) CD Sing
4) NPM init (initialization project)
At this time need to fill out some project information, you can fill in according to the situation, of course, you can return.
5) Install a third-party package (the module of the package will be called directly by the program later)
Description: Because the HTTP module, the FS module, are built-in packages, no additional additions are required.
Install the Cheerio package here, and request package.
In DOS, the CD enters the Sing folder, and then
NPM Install Cheerio–save
After installing the Cheerio package, continue installing the request package, NPM install Request–save
Description: NPM (Nodejs Package Manager), Nodejs Pack Manager;
The purpose of –save is to write a project's dependency on the package to the Package.json file.
Reference Original: http://blog.csdn.net/yezhenxu1992/article/details/50820629
Learn notes-Create a Nodejs project using the cmd command line