jade Getting started with jade Installation or Setup


Example

Before to launch you to code with Pug, you need to have some prerequisits.

You will need to install:

After installing NodeJS, you can check in your terminal the correct installation doing:

$ node -v

If successful, it will print the number of Node's version.

To install Pug into your project, the preferred and easy way is through NPM (Node Package Manager). If you are familiar with that, simply execute this line of code in your Terminal:

$ npm install pug

If you want to install globally, you can type:

$ npm install pug-cli -g

and run with

$ pug --help