Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Sep 222011

How to install a NodeJS module using npm globally


By default, node modules installed using simple node install will be installed under the folder ./node_modules. In order to install the modules globally, try

# sudo npm install express -g

The above command install the express module as global module.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>