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.

npm

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.