diff --git a/How-to-set-up-WooCommerce-development-environment.md b/How-to-set-up-WooCommerce-development-environment.md index e71b7b4..1a6fcaa 100644 --- a/How-to-set-up-WooCommerce-development-environment.md +++ b/How-to-set-up-WooCommerce-development-environment.md @@ -18,7 +18,7 @@ This page will guide you through the process of setting up WooCommerce developme Before starting, make sure you have the following software installed and working on your machine: 1. [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) to clone the WooCommerce repository (or your fork of the WooCommerce repository). -2. [NPM](https://www.npmjs.com/get-npm) to install Node packages used to build assets and other tasks. +2. [NVM](https://github.com/nvm-sh/nvm) to install Node.js and NPM. 3. [Composer](https://getcomposer.org/download/) to install PHP packages required by WooCommerce such as the `woocommerce-rest-api` and the `jetpack-autoloader`. It's also necessary to use the PHP CodeSniffer that ensures your code follows code standards. ## Configure a local WordPress instance @@ -58,6 +58,8 @@ To install WooCommerce dependencies (this includes some functionality such as Gu ``` $ cd ~/vagrant-local/www/wordpress-one/public_html/wp-content/plugins/woocommerce +$ nvm install 10.22.0 +$ nvm use 10.22.0 $ npm install $ composer install ```