The npm ecosystem

We have used npm previously in this book, and by now we should know how to use it well. The npm ecosystem is composed of thousands of external modules. We can use the official npm website at https://www.npmjs.com/ to search for a package that might help us to complete a given task. Unlike the modules that are part of the core Node.js API, external npm modules need to be installed using npm:

npm install react 

If the module is not recognized by TypeScript, we will also need to install its type definitions (if available):

npm install @types/react 
Please refer to Chapter 13, Application Performance, and Chapter 9, Automating Your Development Workflow, to learn more about other tools in the Node.js ecosystem, for example, the ...

Get Learning TypeScript 2.x - Second Edition 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.