Package Details: mjml-app 3.0.4-1

Git Clone URL: https://aur.archlinux.org/mjml-app.git (read-only, click to copy)
Package Base: mjml-app
Description: The desktop app for MJML
Upstream URL: https://github.com/mjmlio/mjml-app
Licenses: MIT
Submitter: meriadec
Maintainer: toasterlint
Last Packager: toasterlint
Votes: 1
Popularity: 0.000000
First Submitted: 2017-10-13 22:43 (UTC)
Last Updated: 2022-09-16 14:49 (UTC)

Latest Comments

Natetronn commented on 2021-07-07 18:02 (UTC) (edited on 2021-07-07 18:07 (UTC) by Natetronn)

I wasn't able to get this to install via Pamac or Pacman without it trying to install both nodejs (16.x.x, which isn't compatible with mjml-app) and yarn, even though I already have node installed via NVM and yarn installed into that; both show up as the current versions when I run the version flag etc, but pacman and pamac doesn't recognize them being already installed, for some reason.

In the end I downloaded and edited my own PKGBUILD file locally (cd into its directory):

https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=mjml-app

And created the mjml-app.desktop file in the same location:

https://aur.archlinux.org/cgit/aur.git/plain/mjml-app.desktop?h=mjml-app

Then I updated the mjml-app.desktop md5hash accordingly in the PKGBUILD file. Finally I ran the following:

makepkg -d

sudo pacman -U mjml-app-3.0.3-1-any.pkg.tar.zst --assume-installed nodejs=16.3.0 --assume-installed yarn=1.22.10

(adjust tar name and node/yarn version numbers accordingly)

I'm not sure if this is the best or only way to go about it but, hope it helps others, just the same.

Durag commented on 2021-06-15 23:26 (UTC)

Thanks you, guys! Using NodeJS 12 via NVM worked.

toasterlint commented on 2021-06-15 14:42 (UTC)

I've added a check in the PKGBUILD that will error if the NodeJS version detected is v16 and will provide a suggestion of installing an older version of NodeJS.

toasterlint commented on 2021-06-15 13:47 (UTC) (edited on 2021-06-15 14:23 (UTC) by toasterlint)

@Durag The issue seems to stem from running v16 of NodeJS. I'm running a fresh install of Arch and also received the error. Based on a quick search of this type of error it was suggested elsewhere that someone had to downgrade to v12 of NodeJS.

I installed NVM, used it to install the LTS version of NodeJS 12, and re-ran makepkg and it succeeded this time. I also tried v14 and it also worked.

So the issue appears to be related to an incompatibility with MJML-APP and NodeJS v16.

Durag commented on 2021-06-11 11:08 (UTC)

I cannot build the package, it exits with the following error:

/home/mst/.node-gyp/16.3.0/include/node/node.h:840:3: note: in expansion of macro ‘NODE_MODULE_X’
  840 |   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
      |   ^~~~~~~~~~~~~
../src/binding.cpp:358:1: note: in expansion of macro ‘NODE_MODULE’
  358 | NODE_MODULE(binding, RegisterModule);
      | ^~~~~~~~~~~
make: *** [binding.target.mk:129: Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/mst/Code/PKGBUILDs/mjml-app/src/mjml-app-3.0.3/node_modules/node-sass/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/mst/Code/PKGBUILDs/mjml-app/src/mjml-app-3.0.3/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
gyp ERR! System Linux 5.12.9-arch1-1
gyp ERR! command "/usr/bin/node" "/home/mst/Code/PKGBUILDs/mjml-app/src/mjml-app-3.0.3/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/mst/Code/PKGBUILDs/mjml-app/src/mjml-app-3.0.3/node_modules/node-sass
gyp ERR! node -v v16.3.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 


==> ERROR: A failure occurred in package().
    Aborting...

Any idea how to fix this?