Skip to content

Install development dependencies

Ashley Kolodziej edited this page Jun 28, 2022 · 2 revisions

Installing Development Dependencies

Before you begin, make sure Node / Node Package Manager are installed and the following dependencies are installed globally.

First time users only

This step only needs to be done One Time, regardless of how many new child-themes you create. Open terminal, and then run the following:

npm install -g grunt-cli

Then, install nvm by running the following:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

Verify that nvm works by running nvm --help.

If you see an error message, loop in a developer and let them know you were following the instructions here. Developers, this was based on these instructions.

Each time you create a new theme

This next step should be done every time you create or work on a new theme.

  1. Change your theme directory by typing cd then adding a space after the letter 'd'.

  2. Drag the Theme's folder from a Finder Window into Terminal and click the "Return" key.

It should look something like this: "theme-name" username$

Run the following commands.

npm install

This will install all of your local development dependencies. Again, these commands only need to be run once per theme.