Skip to content

GetFunctionsCoreToolsPath fails to find Azure Function Core Tools on Mac #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
VasuBhog opened this issue Nov 7, 2022 · 1 comment
Closed

Comments

@VasuBhog
Copy link
Contributor

VasuBhog commented Nov 7, 2022

On Mac: Azure Function Core tools is (most likely) installed via Brew.

Therefore the GetFunctionCoreTools will fail on finding the core tools in node modules (shown below):

System.IO.FileNotFoundException : Azure Function Core Tools not found at /usr/local/lib/node_modules/azure-functions-core-tools/bin/func.

We should also check brew for Mac OS development so that it can properly find the function core tools path and not have to hardcode the path.

Workaround:

  • comment out GetFunctionsCoreToolsPath and set this line to where the location of func is (use where func in the terminal to find the location).
@lucyzhang929
Copy link
Contributor

Fixed here: #533

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

No branches or pull requests

2 participants