Package management tools

Package management tools are used for dependency management, so that we no longer have to manually download and manage our application's dependencies. We will learn how to work with three different package management tools: Bower, npm, and tsd.


The npm package manager was originally developed as the default Node.js package management tool, but today it is used by many tools. Npm uses a configuration file, called package.json, to store references to all the dependencies in our application. It is important to remember that we will normally use npm to install dependencies that we will use on the server side, in a desktop application, or with development tools.

Before we install any packages, we should add a package.json ...

Get TypeScript: Modern JavaScript Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.