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

[bug] yarn create tauri-app not working if you have spaces in username #1

Closed
simonflick opened this issue Feb 18, 2022 · 4 comments
Closed

Comments

@simonflick
Copy link

Describe the bug

Running the command produced the following output:

PS C:\js> yarn create tauri-app
yarn create v1.22.17
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "[email protected]" with binaries:
      - create-tauri-app
Der Befehl "C:\Users\Simon" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
error Command failed.
Exit code: 1
Command: C:\Users\Simon Flick\AppData\Local\Yarn\bin\create-tauri-app
Arguments:
Directory: C:\js
Output:

info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

It worked when I ran the command manually and escaped my username:
C:\Users\"Simon Flick"\AppData\Local\Yarn\bin\create-tauri-app

Reproduction

No response

Expected behavior

No response

Platform and versions

Windows 10

Stack trace

No response

Additional context

No response

@amrbashir amrbashir transferred this issue from tauri-apps/tauri Feb 18, 2022
@amrbashir
Copy link
Member

What's the reason to have spaces? it is generally discouraged.

@simonflick
Copy link
Author

What's the reason to have spaces? it is generally discouraged.

I can't remember if I did that or if it came from setting up Windows with my Microsoft account. Anyways, spaces are a very natural thing to use and they are used by operating systems too (C:\Program Files and ~/Library/Application Support). Not supporting them is a thing of the past that we should try to overcome.

@amrbashir
Copy link
Member

Sorry, I thought you were using a name with spaces for the project name.

Anyways, this seems like it might be a yarn problem, can you try yarn create react-app and see if it succeeds?

@simonflick
Copy link
Author

You were right, it fails for the same reason. I also found this yarn bug report: yarnpkg/yarn#6851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants