Could not load the default credentials? (Node.js Google Compute Engine tutorial)

后端 未结 14 1613
情话喂你
情话喂你 2020-12-04 19:20

SITUATION:

I follow this tutorial: https://cloud.google.com/nodejs/tutorials/bookshelf-on-compute-engine

Everything works fine until I do

14条回答
  •  一个人的身影
    2020-12-04 19:25

    Another solution i found: in your package.json add an export command like this:

    "scripts": {
        "start": "export GOOGLE_APPLICATION_CREDENTIALS='./gcloud.json' && node ./bin/www --exec babel-node --presets babel-preset-env",
      },
    

提交回复
热议问题