On Sep 2, 2014, at 1:38 PM, HansPeterSloot wrote: > Op zaterdag 30 augustus 2014 23:09:46 UTC+2 schreef Tadeu Zagallo: >> I think the module should be installed on the same folder as your >> application. >
> When I put the code in the same directory as the node executable the error > disappeared. > > But I consider that more or less 'dirty'. > How can I separate the code from the executables? You don't need to put your JavaScript file in the same directory as the node executable. Rather, you need to put the node_modules folder in the same directory as your JavaScript file. And this is accomplished by running the "npm install ..." command in the same directory as your JavaScript file. Each node project gets its own node_modules folder containing only the modules it asks for. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/AA89D555-3C04-437A-A56B-AE3A33FEFA5C%40ryandesign.com. For more options, visit https://groups.google.com/d/optout.
