Skip to content

Commit

Permalink
fix for nodejs global modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed Aug 6, 2011
1 parent 95baedd commit 4a9268b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/pinf-loader-js/adapter/node.js
Expand Up @@ -25,7 +25,11 @@ exports.init = function(api)
// JSON = provided by nodejs as a global
// setTimeout = provided by nodejs as a global



// TEMPORARY: http://stackoverflow.com/questions/5919629/express-module-not-found-when-installed-with-npm
api.ENV.platformRequire.paths.push('/usr/local/lib/node_modules');


api.ENV.loaderRoot = PATH.dirname(PATH.dirname(PATH.dirname(PATH.dirname(__filename))));

api.ENV.packageProviders["nodejs.org"] = {
Expand Down
2 changes: 1 addition & 1 deletion lib/pinf-loader-js/loader.js
Expand Up @@ -101,7 +101,7 @@ var boot = exports.boot = function(options)
optParser.help("Runs the PINF JavaScript Loader.");
optParser.option("-v", "--verbose").bool().help("Enables progress messages");
optParser.option("--pidfile").set().help("Write the process ID to the specified file. Remove file on exit. Ensures only one instance at a time.");
optParser.option("--daemonize").bool().help("Daemonize the process. Requires: npm install daemon");
optParser.option("--daemonize").bool().help("Daemonize the process. Requires: npm install -g daemon");
optParser.option("--platform").set().help("The platform to use");
optParser.option("--sources").set().help("The path to a sources.json file to overlay source repositories");
optParser.option("--script").set().help("Call a script defined in the program boot package");
Expand Down

0 comments on commit 4a9268b

Please sign in to comment.