Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

"functions event-types list" command not working #297

Open
ersin-ertan opened this issue Dec 11, 2018 · 0 comments
Open

"functions event-types list" command not working #297

ersin-ertan opened this issue Dec 11, 2018 · 0 comments

Comments

@ersin-ertan
Copy link

Environment details

  • OS: macOs High Sierra
  • Node.js version: v6.15.1
  • npm version: 3.10.10
  • @google-cloud/functions-emulator version: 1.0.0-beta.5

Steps to reproduce

After following the "How do I get started?" repo main page readme, this command did not work:
functions event-types list
Command wiki section

Terminal Output

/bin/sh: gcloud: command not found
{ Error: Command failed: gcloud beta functions event-types list
/bin/sh: gcloud: command not found

    at checkExecSyncError (child_process.js:473:13)
    at execSync (child_process.js:513:13)
    at Object.exports.handler (/usr/local/lib/node_modules/@google-cloud/functions-emulator/src/cli/commands/event-types/list.js:51:15)
    at Object.runCommand (/usr/local/lib/node_modules/@google-cloud/functions-emulator/node_modules/yargs/lib/command.js:235:44)
    at Object.parseArgs [as _parseArgs] (/usr/local/lib/node_modules/@google-cloud/functions-emulator/node_modules/yargs/yargs.js:1014:30)
    at Object.runCommand (/usr/local/lib/node_modules/@google-cloud/functions-emulator/node_modules/yargs/lib/command.js:195:96)
    at Object.parseArgs [as _parseArgs] (/usr/local/lib/node_modules/@google-cloud/functions-emulator/node_modules/yargs/yargs.js:1014:30)
    at Object.parse (/usr/local/lib/node_modules/@google-cloud/functions-emulator/node_modules/yargs/yargs.js:542:25)
    at Object.main (/usr/local/lib/node_modules/@google-cloud/functions-emulator/src/cli/main.js:69:6)
    at getProjectId.then (/usr/local/lib/node_modules/@google-cloud/functions-emulator/bin/functions:105:27)
  error: null,
  cmd: 'gcloud beta functions event-types list',
  file: '/bin/sh',
  args: [ '/bin/sh', '-c', 'gcloud beta functions event-types list' ],
  options: 
   { shell: true,
     file: '/bin/sh',
     args: [ '/bin/sh', '-c', 'gcloud beta functions event-types list' ],
     envPairs: 
      [ 'TERM_PROGRAM=Apple_Terminal',
        'NVM_CD_FLAGS=',
        'SHELL=/bin/bash',
        'TERM=xterm-256color',
        'TMPDIR=/var/folders/g3/hf9q15k50p9dgbz_bwlwyjx400l85y/T/',
        'Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.Fhze992FT7/Render',
        'TERM_PROGRAM_VERSION=404.1',
        'OLDPWD=/Users/me',
        'TERM_SESSION_ID=77148601-8685-43D8-BA0F-48CBE23A09DC',
        'NVM_DIR=/Users/me/.nvm',
        'USER=me',
        'SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.E6V7JKPQoN/Listeners',
        'SK_SIGNING_PLUGIN=gnubbyagent',
        'PATH=/Users/me/.nvm/versions/node/v6.15.1/bin:/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin',
        'PWD=/Users/me/helloWorld',
        'LANG=en_CA.UTF-8',
        'XPC_FLAGS=0x0',
        'HISTCONTROL=',
        'XPC_SERVICE_NAME=0',
        'SHLVL=1',
        'HOME=/Users/me',
        'LOGNAME=me',
        'NVM_BIN=/Users/me/.nvm/versions/node/v6.15.1/bin',
        '_=/usr/local/bin/functions',
        '__CF_USER_TEXT_ENCODING=0x9A0BE:0x0:0x52' ],
     stdio: [ [Object], [Object], [Object] ] },
  envPairs: 
   [ 'TERM_PROGRAM=Apple_Terminal',
     'NVM_CD_FLAGS=',
     'SHELL=/bin/bash',
     'TERM=xterm-256color',
     'TMPDIR=/var/folders/g3/hf9q15k50p9dgbz_bwlwyjx400l85y/T/',
     'Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.Fhze992FT7/Render',
     'TERM_PROGRAM_VERSION=404.1',
     'OLDPWD=/Users/me',
     'TERM_SESSION_ID=77148601-8685-43D8-BA0F-48CBE23A09DC',
     'NVM_DIR=/Users/me/.nvm',
     'USER=me',
     'SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.E6V7JKPQoN/Listeners',
     'SK_SIGNING_PLUGIN=gnubbyagent',
     'PATH=/Users/me/.nvm/versions/node/v6.15.1/bin:/usr/local/git/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin',
     'PWD=/Users/me/helloWorld',
     'LANG=en_CA.UTF-8',
     'XPC_FLAGS=0x0',
     'HISTCONTROL=',
     'XPC_SERVICE_NAME=0',
     'SHLVL=1',
     'HOME=/Users/me',
     'LOGNAME=me',
     'NVM_BIN=/Users/me/.nvm/versions/node/v6.15.1/bin',
     '_=/usr/local/bin/functions',
     '__CF_USER_TEXT_ENCODING=0x9A0BE:0x0:0x52' ],
  stderr: <Buffer 2f 62 69 6e 2f 73 68 3a 20 67 63 6c 6f 75 64 3a 20 63 6f 6d 6d 61 6e 64 20 6e 6f 74 20 66 6f 75 6e 64 0a>,
  stdout: <Buffer >,
  pid: 95838,
  output: 
   [ null,
     <Buffer >,
     <Buffer 2f 62 69 6e 2f 73 68 3a 20 67 63 6c 6f 75 64 3a 20 63 6f 6d 6d 61 6e 64 20 6e 6f 74 20 66 6f 75 6e 64 0a> ],
  signal: null,
  status: 127 }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant