mountebank-install error on AWS ec2 -linux

49 views
Skip to first unread message

Milind Vakil

unread,
Sep 25, 2020, 5:57:19 PM9/25/20
to mountebank-discuss
Hi,

I am trying to install mountebank on AWS EC2 linux with following OS version details:

Please review and let me know if I am using anything that is not compatible.


NAME="Amazon Linux AMI"

VERSION="2018.03"

ID="amzn"

ID_LIKE="rhel fedora"

VERSION_ID="2018.03"

PRETTY_NAME="Amazon Linux AMI 2018.03"

Node and npm versions are below:

node -v

v12.18.4

npm -v

6.14.6

Complete error message below:


# npm install -g mountebank
/usr/bin/mb -> /usr/lib/node_modules/mountebank/bin/mb

> nodem...@6.4.11 postinstall /usr/lib/node_modules/mountebank/node_modules/nodemailer
> node -e "try{require('./postinstall')}catch(e){}"


> nodem...@6.4.10 postinstall /usr/lib/node_modules/mountebank/node_modules/smtp-server/node_modules/nodemailer
> node -e "try{require('./postinstall')}catch(e){}"


> e...@2.7.4 postinstall /usr/lib/node_modules/mountebank/node_modules/ejs
> node ./postinstall.js

internal/modules/cjs/loader.js:968
throw err;
^

Error: Cannot find module '/usr/lib/node_modules/mountebank/node_modules/ejs/postinstall.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
at Function.Module._load (internal/modules/cjs/loader.js:841:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! e...@2.7.4 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the e...@2.7.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-09-25T21_47_18_494Z-debug.log

Brandon Byars

unread,
Sep 26, 2020, 10:47:56 AM9/26/20
to Milind Vakil, mountebank-discuss
Hi Milind,
From the logs, it appears to be choking on EJS. I've not seen that before. My first check would to repeat the npm install to see if it was an ephemeral issue. If that doesn't work, do any of the other install options work?
-Brandon

--
You received this message because you are subscribed to the Google Groups "mountebank-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mountebank-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mountebank-discuss/122c76d7-42df-4adf-9b0f-0d32707f320cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages