vuetifyjs / create

🛠️ Build tooling for Vuetify 3
63 stars 19 forks source link

[Bug Report][3.1.1] Yarn Create Vuetify Fails for Windows User with Special Char in Username #15

Closed peter-sidebotham closed 11 months ago

peter-sidebotham commented 1 year ago

Environment

Vuetify Version: 3.1.1 Vue Version: 3.2.45 Browsers: Edge 108.0.1462.76 OS: Windows

Steps to reproduce

  1. Have an Azure joined Windows environment (optional): when a machine is azure joined, your home folder name is based on the display name of your O365 account.
  2. Have a user display name containing parentheses e.g. "Peter Sidebotham (SIDM)" resulting in a home folder containing a parenthesis
  3. Run "yarn create vuetify"

Expected Behavior

Initialize a Vuetify 3 project

Actual Behavior

Error: 'C:\Users\PeterSidebotham' is not recognized as an internal or external command,

Reproduction Link

https://codesandbox.io/s/boring-dust-1dty24

Other comments

This appears to be a problem escaping the parenthesis character in the yarn command to initialize the vuetify 3 project. It's not clear to me if this is an issue with yarn or vuetify 3. I've tried the command in regular and elevated prompts, and in windows cmd and MinTTY. Given the oddness of having a parenthesis in a username, I would be happy with a more manual approach to initialize a project.

KaelWD commented 1 year ago

Is there a stack trace? What's the full home folder path you have? Is there any other terminal output? What yarn and node versions have you used? Does it work with npm or pnpm instead? Is this the same as #10?

peter-sidebotham commented 1 year ago

It looks like this is basically the same issue as #10. There's not really a stack trace. The full home folder path is: C:\Users\PeterSidebotham(SIDM. Yarn version is v1.22.19. Vuetify 3 documentation does not include any scaffold or install instructions except for "yarn create vuetify" so I have not tried alternative methods.

Full terminal output is: C:\SoftwareIDM\IdentityPanel\src\panel-ui>yarn create vuetify yarn create v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages...

success Installed "create-vuetify@1.0.6" with binaries:

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

KaelWD commented 1 year ago

Yeah sounds like #10. I think we should switch the recommendation to npm or pnpm anyway.

peter-sidebotham commented 1 year ago

Sorry for the duplicate, I somehow missed 10. Elijah's comment got me to Yarn issue 6851. Espenja's solution to add a directory junction for my home folder and change the yarn cache and prefix directories worked for me. Thanks