infinum / eightshift-boilerplate

This repository contains all the tools you need to start building a modern WordPress theme, using all the latest front end development tools.
https://eightshift.com
MIT License
543 stars 69 forks source link

[BUG] creating a project #213

Closed baturkacamak closed 3 years ago

baturkacamak commented 4 years ago

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

MetarDev commented 3 years ago

Should be the same issue as this one https://github.com/infinum/eightshift-frontend-libs/issues/184

MetarDev commented 3 years ago

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

MetarDev commented 3 years ago

Fixed in create-wp-project@2.0.7