1. apt-get install npm
  2. npm cache clean -f
  3. npm install -g n
  4. n latest
  5. ln -sf /usr/local/n/versions/<VERSION>/bin/node /usr/bin/node
  6. node -v
  7. npm -i n
  8. npm i -g mjml
  9. mjml template.mjml


Error: EISDIR: illegal operation on a directory, open './' at Error (native)

Upgrade Node.js to the latest stable version

/usr/bin/env: 'node': No such file or directory

apt-get install nodejs-legacy