This article assumes you have Node.js and NPM installed.

Similar to Ruby and it’s gem methodology, Node.js has a structure of installing libraries through NPM.

Installing to a Single Project

Simply go to the directory of your project and type the command

npm install [library name]

you can also use npm uninstall [library name]

This installs the library or framework into the project you’re currently in.

Global Installs

To globally install a framework or library, you run the same command with the -g param.  For example:

npm install [library name] -g 

Searching for Libraries

If you aren’t sure of what version or what the exact name of a library you’re looking for is, you can search the npm repositories with:

npm search [library name]



No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *