Hacker News new | ask | show | jobs
by david-given 3875 days ago
Does it support installing packages globally and then having them actually be available, without having to install them locally as well?

This is my biggest bugbear with npm, as it pretty much rules out doing shell scripting with node.

1 comments

If you keep node in ~/bin/, you could symlink your global npm path to ~/bin/node_modules/ .. just a thought here.
I mean if you keep your shell scripts in ~/bin/ (which is where I happen to keep mine)... I use straight bash scripts most of the time, but it's usually easiest for me to use node/js since my environment already has it than it is for me to try to remember perl, learn python or use something else.