Skip to content

yarn.lock prevents deploying the hello-world appengine sample #308

Description

@newbreedofgeek

If you follow this tutorial:
https://cloud.google.com/nodejs/getting-started/hello-world

You will hit an issue when you try and gcloud app deploy which fails.

This is because of this yarn.lock file:
https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/appengine/hello-world/yarn.lock

The error you see will be:

ERROR: Yarn checker: "yarn.lock" was found indicating Yarn is being used, but "yarn check" indicates "yarn.lock" is invalid.
ERROR: (gcloud.app.deploy) Your application does not satisfy all of the requirements for a runtime of type [nodejs].  Please correct the errors and try again.

No sure why this is checkin here as the tutorial uses npm.

Removing the file locally before deploying will fix the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions