Questions tagged
package.json
All npm packages contain a file, usually in the project root, called package.json. This file holds various metadata relevant to the project. This file is used to give information to npm that allows it to identify the project as well as handle the project's dependencies.

All npm packages contain a file, usually in the project root, called package.json. This file holds various metadata relevant to the project. This file is used to give information to npm that allows it to identify the project as well as handle the project's dependencies.

It can also contain other metadata such as a project description, the version of the project in a particular distribution, license information, even configuration data, all of which can be vital to both npm and to the end users of the package. The package.json file is normally located at the root directory of a node.js project.

{
  "name" : "express",
  "version" : "0.0.0",
}

The name field is the name of your project. The version field is used by npm to make sure the right version of the package is being installed. Generally, it takes the form of major.minor.patch where major, minor, and patch are integers which increase after each new release.

For more details see the package.json documentation at npmjs.com.