Get started with modern WordPress development by setting up the essential tools.
Learn how to:
- access the command line,
- install Node.js
- npm with
- Node Version Manager (nvm),
- and prepare your environment for efficient development with WP-CLI (WordPress Command Line Interface).
Whether you're on Mac or Windows, this video will guide you through the setup process.
Elliot Richmond show you within 10 minutes
In this video, we will be building blocks in a block plugin for the WordPress Block editor also known as Gutenberg Editor.
We will create see how you can scaffold a quick blocks plugin in 2023 and use Block editor APIs to add features.
To set up your development environment can be a hassle - especially if you try to do it en a MS Windows environment !
In the Introduction to Block Development: Build your first custom block, there is a guide to Set up your development environment.
You'll need the node/npm installed! But in the Set up your development environment, there's not any direct description on how to do this on Windows.
The guide recommends using NVM (Node Version Manager) to handle different versions of Node. Unfortunately, NVM is mostly supported on Linux and Mac (Uses POSIX-compliant shell). It should work through WSL (Windows Subsystem for Linux) depending on the version of WSL.
This tutorial shows a WordPress recommended way !
The way recommended here:
If you’re on a Windows machine, you will need to install the Chocolatey package manager for Windows to install nvm. First open PowerShell with administrative privileges by right-clicking on the PowerShell menu item and selecting Run as Administrator. Then browse to the Chocolatey setup documentation and scroll down to the Install with PowerShell instructions. Copy the instructions and right-click in the PowerShell window to paste them.
See the Video or read the Video Transcript to learn more.