Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The documentation for the npm command line is wrong #6066

Closed
dong-lufei opened this issue Jan 18, 2023 · 4 comments
Closed

The documentation for the npm command line is wrong #6066

dong-lufei opened this issue Jan 18, 2023 · 4 comments

Comments

@dong-lufei
Copy link

npm -l
.
.
.
login           Add a registry user account

                Usage:
                npm adduser

                Options:
                [--registry <registry>] [--scope <@scope>]
                [--auth-type <legacy|web|sso|saml|oauth|webauthn>]

                aliases: login, add-user

                Run "npm help adduser" for more info

The column menu login on the left of the detailed list should be adduser, or change the grammar and aliases inside

@lukekarrys
Copy link
Contributor

What version of npm is this on?

@lukekarrys lukekarrys added the Awaiting Information further information is requested label Jan 18, 2023
@dong-lufei
Copy link
Author

这是什么版本的 npm?

The latest stable version of nodejs I installed contains npm version 8.19.3

@Hafizur046
Copy link
Contributor

login and adduser were separated in #5550 which was released in v9.0.0. Before that, the login command was just an alias for adduser.

@lukekarrys
Copy link
Contributor

yes, this has been changed in npm v9. Closing as this is no longer an issue.

@lukekarrys lukekarrys removed the Awaiting Information further information is requested label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants