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]
[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.
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.
Some Recommended Packages
- Http-server: https://www.npmjs.com/package/http-server
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)
- LoginRadius-SDK: https://www.npmjs.com/package/loginradius-sdk
Detail: For existing customers, simplifies calls to our server for easy customizability