Local Community

Setting up a local Dev WP environment for contributing to Gutenberg

Hi

I have helped create a QuickStart for setting up a Local WordPress Development Environment with focus on WordPress core. To be used for contributing to Gutenberg, testing PRs, block plugin creation, and more.

Instead of installing Docker I opened Local and started up one of my test sites. Switched to the correct directory by writing cd then dragging in the site folder.
paaljoachimromdahl@Paals-MacBook-Pro ~ % cd /Users/paaljoachimromdahl/Local\ Sites/testinggutenberg
paaljoachimromdahl@Paals-MacBook-Pro testinggutenberg %

I also noticed that one can instead right click the site and choose “Open Site Shell”.

Next up I wrote wp-env start:
Here is the result.

paaljoachimromdahl@Paals-MacBook-Pro ~ % cd /Users/paaljoachimromdahl/Local\ Sites/testinggutenberg
paaljoachimromdahl@Paals-MacBook-Pro testinggutenberg % wp-env start
:warning: Warning: could not find a .wp-env.json configuration file and could not determine if ‘/Users/paaljoachimromdahl/Local Sites/testinggutenberg’ is a WordPress installation, a plugin, or a theme.
:heavy_multiplication_x: spawn docker-compose ENOENT
Error: spawn docker-compose ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -2,
code: ‘ENOENT’,
syscall: ‘spawn docker-compose’,
path: ‘docker-compose’,
spawnargs: [
‘-f’,
‘/Users/paaljoachimromdahl/.wp-env/dad922c93a1ee4abbc39600bac39aba0/docker-compose.yml’,
‘down’
]
}
paaljoachimromdahl@Paals-MacBook-Pro testinggutenberg %

I noticed that the .wp-env-json configuration file error message is seen when using Docker. But atleast in Docker I am able to open the dev environment by going to http://localhost:8888/
The other error code I still have not found any information about.

I am wondering how to proceed.
Thank you!
Happy New Year!