googlearchive / cloud-functions-emulator

A local emulator for deploying, running, and debugging Google Cloud Functions.
https://github.com/GoogleCloudPlatform/cloud-functions-emulator/wiki
Apache License 2.0
826 stars 114 forks source link

No errors, but functions does not start #149

Open ydennisy opened 6 years ago

ydennisy commented 6 years ago

Description

Mac OSX using iterm2 ZSH - node v0.6.11.1

Hello, installed using npm running functions start yields no results, neither do any of the other commands. The only way to get a reaction from the package is to type just functions and it prints what looks like a very long bash script!

Steps to reproduce

install with npm type functions start

Thanks!

jmdobry commented 6 years ago

Try functions-emulator instead of functions. It may be that your shell already has a built-in functions command.

phocks commented 6 years ago

I had this issue as well. It looks like oh-my-zsh has a functions command already. I didn't know about functions-emulator but I just did alias fns="/usr/local/lib/node_modules/@google-cloud/functions-emulator/bin/functions" in my ~/.zshrc and it seemed to work.

lucanaldini commented 6 years ago

I had the same issue as @phocks and I use zsh too. To work around it I had to call: /usr/local/lib/node_modules/@google-cloud/functions-emulator/bin/functions --help