install node.js module globally

The option -g will install a node module globally and you can use this module in any file directories.
[code language=”shell”]
sudo npm install -g some_module_name
[/code]

The rule of thumb is to install a node module globally if you need to use it on the shell command line.

Search within Codexpedia

Custom Search

Search the entire web

Custom Search