keystone icon indicating copy to clipboard operation
keystone copied to clipboard

The yarn create keystone-app does not work with username which have spaces in windows environment.

Open Sapython opened this issue 3 years ago • 6 comments

  1. Just have username which have spaces in windows platform
  2. Install yarn using node for that user
  3. Then run yarn create keystone-app and it will fail

I expected to get a keystone app built using yarn cli

image

node version 16.13.1 yarn version 1.22.17 create keystone app 6.0.1

Sapython avatar Jan 08 '22 13:01 Sapython

Thanks for taking the time to report this @Sapython, we'll take a look!

bladey avatar Jan 17 '22 03:01 bladey

Hey @Sapython,

I can confirm this is an issue, It looks like this is a pretty common error across a number of projects in the community that hasn't been solved yet, here are a few references:

  • https://github.com/yarnpkg/yarn/issues/6630
  • https://stackoverflow.com/questions/54379046/yarn-gives-error-when-creating-react-application
  • https://github.com/facebook/create-react-app/issues/6512

The best workaround is using the create command outside of a folder with spaces, the last link goes into detail of editing the registry but that looks a bit extreme. Sorry we can't fix this specific issue at this time!

bladey avatar Jan 24 '22 03:01 bladey

@Sapython found an alternative. Use npm create keystone-app or npx create-keystone-app and it will function as expected, seems the issue is specific to yarn.

bladey avatar Jan 24 '22 03:01 bladey

Re-opening to make case for change in starter instructions.

bladey avatar Jan 24 '22 05:01 bladey

Was the issue with yarn ever resolved? I'm currently trying to use the instructions for yarn create keystone-app, but I'm getting an error message saying yarn failed to install, then switches to npm. Screen Shot 2023-03-08 at 7 38 36 AM node version 17.8.0 yarn version 1.22.17 [email protected]

rlpool06 avatar Mar 08 '23 13:03 rlpool06

Was the issue with yarn ever resolved? I'm currently trying to use the instructions for yarn create keystone-app, but I'm getting an error message saying yarn failed to install, then switches to npm. Screen Shot 2023-03-08 at 7 38 36 AM node version 17.8.0 yarn version 1.22.17 [email protected]

Same shіt

Shwallbesa avatar Apr 18 '23 10:04 Shwallbesa