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

[v2] Can't scaffold new website #3799

Closed
pgruetter opened this issue Nov 22, 2020 · 4 comments
Closed

[v2] Can't scaffold new website #3799

pgruetter opened this issue Nov 22, 2020 · 4 comments
Labels
closed: question This issue is a user error/misunderstanding.

Comments

@pgruetter
Copy link

🐛 Bug Report

I can't scaffold a new website as described in the docs.

Have you read the Contributing Guidelines on issues?

Yes.

To Reproduce

  1. Execute npx @docusaurus/init init my-website classic on Ubuntu

Expected behavior

A basic website is setup called my-website with the classic template.

Actual Behavior

I get an error:
Too many arguments.

If I omit the name and template, I would expect it to ask for it (as described in the docs), but get the following error instead:
Expected single character argument.

Your Environment

  • Ubuntu 20.10
  • npm : 6.14.8
  • npx: 10.2.2
  • yarn: 1.22.5
@pgruetter pgruetter added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Nov 22, 2020
@pgruetter pgruetter changed the title [V2] Can't scaffold new website [v2] Can't scaffold new website Nov 22, 2020
@slorber
Copy link
Collaborator

slorber commented Nov 23, 2020

Hi,

Can you tell me the output of npx @docusaurus/init --version ?

Can you give more details about the output? (maybe a screenshot of your terminal)
When does it fail in this scaffold process? Do you have a stacktrace or something?

Have you tried a more recent node version? See requirements here: https://v2.docusaurus.io/docs/installation/#requirements

@pgruetter
Copy link
Author

Can you tell me the output of npx @docusaurus/init --version ?

$ npx @docusaurus/init --version
init: unrecognized option '--version'

Can you give more details about the output? (maybe a screenshot of your terminal)
When does it fail in this scaffold process? Do you have a stacktrace or something?

There really isn't much else to show here. I don't have any stacktrace or error message apart from the ones pasted here.

Have you tried a more recent node version? See requirements here: https://v2.docusaurus.io/docs/installation/#requirements
No, I did not until now! I totally mixed up the numbers and thought I'm on a later version. I just followed this answer on StackOverflow to update to the latest version (not stable!). Now I'm on node v15.2.1 and the command runs successfully.

Sorry about that and thanks for pointing it out 👍

@slorber
Copy link
Collaborator

slorber commented Nov 23, 2020

thanks for reporting @pgruetter , as we have the problem even for Node 10/12 we still need to figure this out.

Looks like @latest solves the problem for older node versions: npx @docusaurus/init@latest init my-website classic

@slorber
Copy link
Collaborator

slorber commented Nov 23, 2020

will be fixed by #3803

@Josh-Cena Josh-Cena added closed: question This issue is a user error/misunderstanding. and removed bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Mar 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: question This issue is a user error/misunderstanding.
Projects
None yet
Development

No branches or pull requests

3 participants