You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/packages-and-modules/contributing-packages-to-the-registry/specifying-dependencies-and-devdependencies-in-a-package-json-file.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ You can add dependencies to a `package.json` file from the command line or by ma
13
13
14
14
###Adding dependencies to a`package.json` file from the command line
15
15
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.
17
17
18
18
To add an entry to the`"dependencies"` attribute of a`package.json` file, on the command line, run the following command: