NodeJS Supervisord Hashlib
Posted
by
enedebe
on Server Fault
See other posts from Server Fault
or by enedebe
Published on 2012-09-09T12:15:48Z
Indexed on
2012/09/09
15:39 UTC
Read the original article
Hit count: 339
node.js
|supervisord
I have an problem with my NodeJS app. The problem is the include of the library Hashlib I've followed more than 10 times the instructions to install. Get a clone of the repo, do make and make install. NodeJS is installed in default path, and that's the tricky point:
When I launch node app.js it works, perfectly.
The problem starts when I configured my Supervisord to run with the same user, with the same config file as I have in other systems working, and I get that NodeJS can't find hashlib.
module.js:337
throw new Error("Cannot find module '" + request + "'");
^
Error: Cannot find module 'hashlib'
I'm getting crazy, what can I do?! Why my user launching node from the console works great, but not the supervisord?
Thanks!
© Server Fault or respective owner