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

[DOCS] npm init <package-spec> is not same as npx <package-spec>. #7011

Open
2 tasks done
vivodi opened this issue Nov 21, 2023 · 0 comments
Open
2 tasks done

[DOCS] npm init <package-spec> is not same as npx <package-spec>. #7011

vivodi opened this issue Nov 21, 2023 · 0 comments
Labels
Documentation documentation related issue Needs Triage needs review for next steps

Comments

@vivodi
Copy link

vivodi commented Nov 21, 2023

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • This is a CLI Docs Problem.

Description of Problem

The npm-init documentation says npm init <package-spec> is the same as npx <package-spec>:

npm init <package-spec> (same as npx <package-spec>)

Is that correct?

If it is correct, why aren't the following two commands equivalent?

npm init docusaurus # works as expected
npx docusaurus      # error: could not determine executable to run

Potential Solution

#5838 discussed this issue, but it was closed.

Affected URL

https://docs.npmjs.com/cli/v10/commands/npm-init

@vivodi vivodi added Documentation documentation related issue Needs Triage needs review for next steps labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation documentation related issue Needs Triage needs review for next steps
Projects
None yet
Development

No branches or pull requests

1 participant