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

  1. self-assigned this
    on Feb 7, 2017
  2. jmdobry commented on Feb 7, 2017

    @jmdobry
    Member

    I have updated the tutorial to include instructions about using Yarn, and I have I've updated the dependencies in this repo such that the yarn check --strict-semver --integrity command should succeed during deployment.

  3. happyjohnnylin commented on Feb 11, 2017

    @happyjohnnylin

    On this tutorial - Run MongoDB on Google Cloud Platform:
    https://cloud.google.com/nodejs/resources/databases/mongodb

    I also hit an issue when executing "gcloud app deploy", which failed in errors that are same as above.

    It seems this page lacks this step!
    default

    or just remind to install yarn first, and use "yarn install", then "yarn start" :)

  4. jmdobry commented on Feb 12, 2017

    @jmdobry
    Member

    Good catch, I'll update this tutorial as well

  5. added a commit that references this issue on Nov 3, 2022
  6. 3 remaining items

  7. added a commit that references this issue on Nov 17, 2022
  8. added a commit that references this issue on Nov 18, 2022
  9. added a commit that references this issue on Nov 22, 2022
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