Content-Length: 262342 | pFad | https://github.com/npm/documentation/commit/35e17e89bc4b32210e88594e8333108f45de7a1e

C0 Update specifying-dependencies-and-devdependencies-in-a-package-json-… · npm/documentation@35e17e8 · GitHub
Skip to content

Commit 35e17e8

Browse files
Update specifying-dependencies-and-devdependencies-in-a-package-json-… (#1221)
…file.mdx mention shortcut flags <!-- What / Why --> for convenience, mention abbreviated versions of `--save-prod` and `--save-dev`
1 parent 3541e52 commit 35e17e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/packages-and-modules/contributing-packages-to-the-registry/specifying-dependencies-and-devdependencies-in-a-package-json-file.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You can add dependencies to a `package.json` file from the command line or by ma
1313

1414
### Adding dependencies to a `package.json` file from the command line
1515

16-
To add dependencies and devDependencies to a `package.json` file from the command line, you can install them in the root directory of your package using the `--save-prod` flag for dependencies (the default behavior of `npm install`) or the `--save-dev` flag for devDependencies.
16+
To add dependencies and devDependencies to a `package.json` file from the command line, you can install them in the root directory of your package using the `--save-prod` flag (also `-S`) for dependencies (the default behavior of `npm install`) or the `--save-dev` flag (also `-D`) for devDependencies.
1717

1818
To add an entry to the `"dependencies"` attribute of a `package.json` file, on the command line, run the following command:
1919

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/npm/documentation/commit/35e17e89bc4b32210e88594e8333108f45de7a1e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy