Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit35e17e8

Browse files
Update specifying-dependencies-and-devdependencies-in-a-package-json-… (#1221)
…file.mdxmention shortcut flags<!-- What / Why -->for convenience, mention abbreviated versions of `--save-prod` and`--save-dev`
1 parent3541e52 commit35e17e8

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)

[8]ページ先頭

©2009-2025 Movatter.jp