npm (Node Package Manager)
npm versioning (package.json version)
npm versioning (package.json version)
Reference > https://stackoverflow.com/a/63112599/1323562
Examples:
"version": "1.8.8"
"version": "2.0.0-alpha.0"
"version": "2.0.0-beta.0"
Comments in pakage.json
Comments in pakage.json
The "//" key will never be used by npm for any purpose, and is reserved for comments.
If you want to use a multiple line comment, you can use either an array, or multiple "//" keys.
{
"//": "this is the first line of a comment",
"//": "this is the second line of the comment"
}
{
"//": [
"first line",
"second line"
]
}
Subcommands reference
Subcommands reference
install
install
The --save flag adds it to the package.json file.
a) Install dependencies from package.json
npm install
b) Installs a package, eg 'uuid'.
npm install --save uuid