infinum/eightshift-boilerplate

[BUG] creating a project

baturkacamak opened this issue · 3 comments

npx create-wp-project

creates an error with path names containing spaces during cloning git

$ pwd
/Users/baturkacamak/Local Sites/test-theme/app/public/wp-content/themes/test-theme
$ npx create-wp-project

error message as follows

 1. Cloning repo
Error - Error: Command failed: git clone https://github.com/infinum/eightshift-boilerplate.git /Users/baturkacamak/Local Sites/test-theme/app/public/wp-content/themes/test-theme
fatal: Too many arguments.

I believe you should write the current directory with double quotes in the npx package

Should be the same issue as this one infinum/eightshift-frontend-libs#184

In short @baturkacamak it fails because of the spaces in the path, will fix but in the meantime you can try without any spaces in the path:

/Users/baturkacamak/Local Sites/test-theme/app/public/wp-content/themes/test-theme

to:

/Users/baturkacamak/some-folder/test-theme/app/public/wp-content/themes/test-theme

Fixed in create-wp-project@2.0.7