I hit the following snag upon trying to run the sample app locally before pushing to Google Cloud Platform.
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
um-macbook:2-structured-data jandersen$ npm start
> [email protected] start /Users/jandersen/projects/2-structured-data
> node app.js
App listening at http://0.0.0.0:8080
/Users/jandersen/projects/2-structured-data/node_modules/gcloud/lib/common/util.js:448
reqOpts.headers = reqOpts.headers || {};
^
TypeError: Cannot read property 'headers' of undefined
at Object.decorateRequest (/Users/jandersen/projects/2-structured-data/node_modules/gcloud/lib/common/util.js:448:28)
at onAuthorized (/Users/jandersen/projects/2-structured-data/node_modules/gcloud/lib/common/util.js:356:32)
at /Users/jandersen/projects/2-structured-data/node_modules/gcloud/node_modules/google-auto-auth/index.js:18:7
at /Users/jandersen/projects/2-structured-data/node_modules/gcloud/node_modules/google-auto-auth/index.js:66:7
at addScope (/Users/jandersen/projects/2-structured-data/node_modules/gcloud/node_modules/google-auto-auth/index.js:102:7)
at callback (/Users/jandersen/projects/2-structured-data/node_modules/gcloud/node_modules/google-auto-auth/node_modules/google-auth-library/lib/auth/googleauth.js:41:5)
at /Users/jandersen/projects/2-structured-data/node_modules/gcloud/node_modules/google-auto-auth/node_modules/google-auth-library/lib/auth/googleauth.js:124:9
at process._tickCallback (node.js:415:13)
npm ERR! Darwin 14.5.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.10.22
npm ERR! npm v2.7.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node app.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script 'node app.js'.
npm ERR! This is most likely a problem with the nodejs-getting-started package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app.js
npm ERR! You can get their info via:
npm ERR! npm owner ls nodejs-getting-started
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/jandersen/projects/2-structured-data/npm-debug.log
I hit the following snag upon trying to run the sample app locally before pushing to Google Cloud Platform.