davidkomer davidkomer - 1 year ago 74
Node.js Question

Modules are not installing globally with "npm -g install..."

On Ubuntu 12.04 x 64...

npm -g install hiredis redis

Installs fine and npm ls shows those modules, but only when I'm in node source directory

does not show when I'm in any other directory

For kicks, tried running the command while in that other directory- still no dice :(

Answer Source

They are installing globally, but you cannot see them with npm ls, in other directories. Because npm ls only shows local modules. If you want to list global modules you have to type: npm ls -g.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download