Giter Club home page Giter Club logo

Comments (3)

ngarnier avatar ngarnier commented on August 12, 2024

Did you install mjml2json in the folder you are in? Why do you have so many nested folders (mjml2json-master\mjml2json-master\mjml2json) when 1 would be enough?

Also, it's hard to tell what you are doing. Are you trying to run node mjml2json .\test\fixtures\styleguide.mjml output.html [-s]? In that case that's normal as it's not how it works. You should run like described in the readme, try mjml2json -V.

from mjml2json.

fredxwin avatar fredxwin commented on August 12, 2024

from mjml2json.

ngarnier avatar ngarnier commented on August 12, 2024

The installation instructions are here: https://github.com/mjmlio/mjml2json#installation. As you can see, you should install via NPM or Yarn, not by downloading as a zip.

Error: Cannot find module 'C:\Downloads\mjml2json-master\mjml2json-master\mjml2json' means it was not properly installed. So please start again in a fresh folder by installing mjml2json as specified in the documentation. You do not need MJML to use mjml2json, and you should avoid global install, prefer a local install instead (and uninstall the global one).

Then, use like specified in the documentation as well: mjml2json input.mjml output.json. -s is an option so shouldn't be between brackets: it's either mjml2json input.mjml output.json or mjml2json input.mjml output.json -s.

from mjml2json.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.