Installing dependencies

We are going to install only one dependency; @google-cloud/language (https://www.npmjs.com/package/@google-cloud/language). This will interface with the Natural Language API. Run the following command from the root of the application:

$ npm install --save @google-cloud/language

Alternatively, run the following:

$ yarn add @google-cloud/language

Get Google Cloud AI Services Quick Start Guide 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.