-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
Description
Updated
See #5302.
The discussion went in unhelpful directions. #5302 replaces this issue.
Original
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
If I run the config command to set my name, I get a confusing and misleading warning:
mv ~/.npmrc ~/".npmrc.$(date '+%F_%H.%M.%S').bak"
npm config set init.author.name "AJ ONeal"
npm WARN config init.author.name Use `--init-author-name` instead.
So then if I try again a few different ways:
npm config set --init-author-name "AJ ONeal"
npm config --init-author-name "AJ ONeal"
I get usage errors:
npm ERR! code EUSAGE
And if I try the simplest form I can think of:
npm --init-author-name "AJ ONeal"
I get yet a different usage error:
npm <command>
Usage:
...
And I can try putting --init-author-name
in .npmrc
, but this also doesn't work:
--init-author-name="AJ ONeal"
--init-author-email="[email protected]"
These are all ignored on npm init
.
Keywords for the sake of SEO and people trying to search for this in the GitHub tool:
- init.author.name
- init-author-name
- --init-author-name
- init.author.email
- init-author-email
- --init-author-email
- init.author.url
- init-author-url
- --init-author-url
- init.license
- init-license
- --init-license
- init.version
- init-version
- --init-version
Expected Behavior
Either the built-in documentation should be updated to give the output the corresponds to the expected input
Or the parsing should change to allow the given output as input in some way
Steps To Reproduce
As shown above.
Environment
- npm: 8.11.0
- Node.js: v16.16.0
- OS Name: macOS
- System Model Name:
- npm config:
; N/A
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release