Installing wp-env
Requires [[nvm]]nvm.
First [[install docker-
(this script doesn't work with compose]].composedocker compose
):
sudo apt install docker-compose -y
Then install wp-env
cd ~/dev/wp/myplugin
# Install and use the latest LTS node
nvm install --lts
nvm use lts/*
# Install wp-env as a global node LTS package
npm install --global @wordpress/env
# Now you can use it anytime
wp-env start