Skip to content

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

@newbreedofgeek

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.

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