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 Report][3.1.1] Yarn Create Vuetify Fails for Windows User with Special Char in Username #15

Closed
peter-sidebotham opened this issue Jan 14, 2023 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@peter-sidebotham
Copy link

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 KaelWD transferred this issue from vuetifyjs/vuetify Jan 14, 2023
@KaelWD
Copy link
Member

KaelWD commented Jan 14, 2023

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
Copy link
Author

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 "[email protected]" with binaries:
- create-vuetify
'C:\Users\PeterSidebotham' is not recognized as an internal or external command,
operable program or batch file.
error Command failed.
Exit code: 1
Command: C:\Users\PeterSidebotham(SIDM\AppData\Local\Yarn\bin\create-vuetify
Arguments:
Directory: C:\SoftwareIDM\IdentityPanel\src\panel-ui
Output:

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

@KaelWD KaelWD added the documentation Improvements or additions to documentation label Jan 14, 2023
@KaelWD
Copy link
Member

KaelWD commented Jan 14, 2023

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

@peter-sidebotham
Copy link
Author

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

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

No branches or pull requests

3 participants