Setting up the Development Environment
Step 1 of 2
Follow these steps:
Install NodeJS (along with Node Package Manager(npm)) if it’s not already installed. We recommend installing the Long Term Support (LTS) version. Once NodeJS is installed, set up your npm environment.
Use npm to install the Yeoman dependency:
npm install -g yo
Install the Liferay Theme Generator v8.x.x with the command below:
npm install -g firstname.lastname@example.org
If you’re on Windows, follow the instructions in step 4 to install Sass, otherwise you can skip that step.
The generator uses node-sass. If you’re on Windows, you must also install node-gyp and Python.
Nice job! Your npm environment is set up and the Liferay Theme Generator and dependencies are installed. Next, you can import the Liferay DXP 6.2 theme to use the Liferay JS Theme Toolkit.