Skip to content

SyntaxError on authentication command #1387

@leonardojobim

Description

@leonardojobim

The simple code below throws a SyntaxError.

var fs = require('fs');

var googleCloudAuthFile = __dirname + '/google_cloud_auth.json';
fs.accessSync(googleCloudAuthFile, fs.F_OK);

var gcloud = require('gcloud')({
  projectId: 'project-id',
  keyFilename: googleCloudAuthFile
});
/vagrant/parse/city-chat-web/node_modules/readable-stream/lib/_stream_readable.js:117
};
 ^

SyntaxError: Unexpected token ;
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/vagrant/parse/city-chat-web/node_modules/readable-stream/readable.js:6:28)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

Metadata

Metadata

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions