Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Node Package Manager (NPM)

What 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
  • Http-server: https://www.npmjs.com/package/http-server

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


  • Restify: https://www.npmjs.com/package/restify

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


  • Mocha: https://www.npmjs.com/package/mocha

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)


  • LoginRadius-SDK: https://www.npmjs.com/package/loginradius-sdk

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




This post first appeared on LoginRadius | Engineering, please read the originial post: here

Share the post

Node Package Manager (NPM)

×

Subscribe to Loginradius | Engineering

Get updates delivered right to your inbox!

Thank you for your subscription

×