Skip to content

Commit d960b75

Browse files
authored
Update config option formatting for the init command. (npm#167)
The previous commands would result in errors like this: ``` npm WARN config init.author.name Use `--init-author-name` instead. ```
1 parent fba5286 commit d960b75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/packages-and-modules/contributing-packages-to-the-registry/creating-a-package-json-file.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ Wrote to /home/monatheoctocat/my_package/package.json:
155155
You can set default config options for the init command. For example, to set the default author email, author name, and license, on the command line, run the following commands:
156156

157157
```
158-
> npm set init.author.email "example-user@example.com"
159-
> npm set init.author.name "example_user"
160-
> npm set init.license "MIT"
158+
> npm set init-author-email "example-user@example.com"
159+
> npm set init-author-name "example_user"
160+
> npm set init-license "MIT"
161161
```
162162

163163
[semver]: about-semantic-versioning

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy