A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/appengine/docs/flexible/nodejs/specifying-dependencies below:

Specifying dependencies | Google App Engine flexible environment docs

Specifying dependencies

Stay organized with collections Save and categorize content based on your preferences.

You specify the dependencies for your Node.js app by declaring them in the package.json file.

For example, if you want to specify Lodash as a dependency, your package.json file might look as follows:

{
  "dependencies": {
    "lodash": "^4.0.1"
  }
}

You can use any Linux-compatible Node.js package with App Engine flexible environment, including packages that require native (C) extensions.

During deployment, the Node.js runtime automatically installs all dependencies declared in your package.json file. By default, the npm install command is used, however Yarn and Pnpm package managers are also supported:

Note that you must ensure that the yarn.lock or pnpm-lock.yaml file is not specified in the skip_files section of your app.yaml file.

Installing a web framework

You'll need to use a web framework to enable your app to serve web requests. You can use any Node.js web framework including the following:

To use a particular web framework, such as Express.js, add the framework to your package.json file:

For example, the resulting package.json file might look as follows:

{
  "dependencies": {
    "lodash": "^4.0.1",
    "express": "^4.16.2"
  }
}
Installing the Cloud Client Libraries

The Cloud Client Libraries for Node.js is the idiomatic way for Node.js developers to integrate with Google Cloud services, such as Firestore in Datastore mode (Datastore) and Cloud Storage.

To install the Node.js client library for Cloud Storage:

  1. Install the Cloud Client Libraries locally by using a package manager:

  2. Set up authentication. You can configure the Cloud Client Libraries for Node.js to handle authentication automatically.

  3. Use the Node.js client library for Cloud Storage reference to implement support for the Cloud Storage service in your app.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-08-07 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["Dependencies for Node.js apps are specified in the `package.json` file, and the Node.js runtime automatically installs them during deployment."],["While `npm` is used by default, Yarn and Pnpm are also supported, with Yarn using `yarn install --production` if a `yarn.lock` file is present and Pnpm using `pnpm install` if a `pnpm-lock.yaml` file is present (but only with specific versions of Node.js)."],["Any Linux-compatible Node.js package can be used with the App Engine flexible environment, including those with native C extensions, and web frameworks like Express.js, Hapi.js, and others are supported and must be added to the `package.json` file."],["The Cloud Client Libraries for Node.js provide a way to integrate with Google Cloud services, and can be installed using `npm`, `yarn`, or `pnpm`, with the library handling authentication."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4