Node Package Manager (NPM)

the guide to NPMWhat is This, and Why Should I Care?

NPM is a package manager for javascript. It is used to share and distribute code amongst the coding community. There are over half a million packages for free developed and shared to help your JavaScript development.

To discover packages click here

How Do I Install NPM?

NPM can easily be installed by going to the node.js website. Just click on the link to download an executable file which will install the package manager for you.

(If you have brew on Mac or Chocolatey on Windows installed, it is even easier just run the command:

brew install npm

Or

choco install nodejs
How Do I Install Packages?

Head over here to search for your package. Once you’ve found it, type in your console:

npm install -g

Since NPM packages are open-source, be wary that some of the packages may not be built correctly. A good way to tell would be viewing the top of the page for any errors.

How Do I Keep My Packages Up-To-Date?

To update the npm packages, simply run:

npm update -g

This will update all your outdated packages to the latest.

Some Recommended Packages

Detail: Emulates a web-server for client-side testing


Detail: Assists in setting up a REST APIs to test on your local server


Detail: Unit testing for web-development. Very useful in testing “code coverage” (It tells you where your code is not being tested in a nice HTML file)


Detail: For existing customers, simplifies calls to our server for easy customizability


Eric Chan

About 

Eric is a Software Engineer at LoginRadius. Born in Hong Kong, he immigrated to Vancouver in order to pursue a degree focused in Computer Science at UBC. During his spare time, Eric enjoys playing sports recreationally, as well as developing fun projects! Check out his GitHub here