Install locally with npm

You can install MJML on OSX, Linux and Windows using npm.
$ npm install mjml

$ ./node_modules/.bin/mjml index.mjml

Add it to your path

For a better experience, add MJML to your path
$ export PATH="$PATH:./node_modules/.bin"

$ mjml index.mjml

After the installation

$ mjml -r index.mjml
$ mjml --watch index.mjml -o index.html
$ mjml -r index.mjml -o index.html

Integrate MJML in your workflow

Subscribe to our newsletter
Join our mailing list to receive news from the MJML team.