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

Cant use yarn create vite if SPACE exist in windows username #15334

Closed
7 tasks done
meisamdev opened this issue Dec 13, 2023 · 1 comment
Closed
7 tasks done

Cant use yarn create vite if SPACE exist in windows username #15334

meisamdev opened this issue Dec 13, 2023 · 1 comment
Labels
invalid This doesn't seem right

Comments

@meisamdev
Copy link

Describe the bug

Hi
I accidentally put a space in my Windows username (Meisam Dev) and I changed it to the correct one (MeisamDev) but the folder name doesn't change (it is still 'C:\Users\Meisam Dev...')
so, when I run yarn create vite my-vue-app I get this error

yarn create v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
      - create-vite
      - cva
[##] 2/2'C:\Users\Meisam' is not recognized as an internal or external command,
operable program or batch file.
error Command failed.
Exit code: 1
Command: C:\Users\Meisam Dev\AppData\Local\Yarn\bin\create-vite
Arguments: my-vue-app
Directory: E:\babylonqs-test
Output:

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

it is ok to use npm create vite@latest

Reproduction

cant create app

Steps to reproduce

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz
    Memory: 1.34 GB / 11.45 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.8.1 - ~\AppData\Roaming\npm\npm.CMD
    pnpm: 7.20.0 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.3636.0), Chromium (120.0.2210.61)
    Internet Explorer: 11.0.19041.3636

Used Package Manager

yarn

Logs

No response

Validations

@sapphi-red
Copy link
Member

This is a bug in yarn: yarnpkg/yarn#6851

@sapphi-red sapphi-red added invalid This doesn't seem right and removed pending triage labels Dec 14, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants