mjml: -bash: mjml: command not found
So I’m following the MJML documentation for basic installation. I successfully install. I run npm list in my project folder and MJML appears there.
However, when I run mjml -v the following error appears
-bash: mjml: command not found
Terminal output for when I run which Node
/usr/local/bin/node
Content of my .bashrc is empty at the moment. I previously added export PATH="$PATH:./node_modules/.bin" but this made no difference.
Using a Macbook air, High Sierra and Terminal.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (9 by maintainers)
Yeah so your $PATH isn’t updated, I don’t know why it doesn’t read your bashrc/bashprofile and there’s not really much we can do about this 😕
Sorry, but I’m closing the issue.
I too had this issue. Running
mjml input.mjml -o output.htmldoesn’t work.However, in my
package.jsonadding a command like"compile":"mjml input.mjml -o output.html"worksIf you’ve installed it locally just use
npm-exec mjmloryarn mjmlit’s now the safest way to use cli binaryOn Wed, May 29, 2019 at 2:47 AM TidyIQ notifications@github.com wrote:
@probablyabear you got to it before me 😃
@sasha150187 From what it sounds like, I have a similar setup to @kostimarko. Put the script in the
scriptssection of package.json.It’d look something like this:
Thats the first thing I usally do @iRyusa
Steps:
est-emailnpm initnpm install mjmlnpm list– I can see mjml and all it dependencies.mjml -vresult is-bash: mjml: command not found-bash: ./node_modules/.bin: is a directoryDo I create .bash_profile or .bashrc on my platform?