Node.js real 1: Create a new Node project.

You may guess how Node professional development to create a new project.

There Npm in, it will be very simple.

Although you can create a JS file and execute: node file.js, but I suggest you use npm init to create a node project, which is a very good habit.

cmd under execution:

nPM heat

You can create a Node project. Then will generate a package.json file. This is a node in the manifest file,

Node.js real 1: Create a new Node project

Tripartite module package.json inside information, basic information will be included in the project, and the project needs.

This file is useful, when the future of this project to be used on other machines, you can rely on it to achieve rapid installation and deployment.

References:

Node.js real 1: Create a new Node project

Creating Node project, which is the first step in the development of entry-Node.

 

Guess you like

Origin www.cnblogs.com/w2sft/p/12008917.html