neverendingqs neverendingqs - 6 months ago 68
Node.js Question

ElasticBeanstalk nodejs.log can't find module 'hogan.js'

I have a simple node.js app that is using

"hogan": "^1.0.2"

It has been failing to deploy, and looking in the logs, I am seeing (multiple times):

Error: Cannot find module 'hogan.js'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)

I'm fairly new to node.js on EB, and have just been following with a pre-existing Express app.

Assuming EB runs
npm install
for me (is that a safe assumption?), what might the issue be?


I was using "hogan": "^1.0.2" instead of "hogan.js": "^3.0.2", which worked locally but not on EB.

hogan is just an unofficial alias someone made to hogan.js.

I do not get hogan.js errors any more after making the switch.