loginradiusloginradius Blog

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…

the guide to 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:

[code]brew install npm[/code]

Or

[code]choco install nodejs[/code]

How Do I Install Packages?

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

[code]npm install -g[/code]

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.

image1

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

To update the npm packages, simply run:

[code]npm update -g[/code]

This will update all your outdated packages to the latest.

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

Written by Eric Chan

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.

    TOC

LoginRadius CIAM Platform

Our Product Experts will show you the power of the LoginRadius CIAM platform, discuss use-cases, and prove out ROI for your business.

Book A Demo Today