I have a command line tool written in node. I'd like to:
- Have the app be able to load its dependencies and work. Currently, after
npm install -g <somemodule>that module is still not available. Things didn't used to work this way. - Not have to run
npm linkon every folder, as I have read in the NPM 1.0 docs. The above docs also talks about $PATH, which seems unrelated to the topic as I care about node modules, not binaries.
How can/should a node command line tool handle its dependencies so that the command line tool can run from any directory?