install node.js module globally

The option -g will install a node module globally and you can use this module in any file directories.

sudo npm install -g some_module_name

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