-
Notifications
You must be signed in to change notification settings - Fork 423
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
Any func
command does not work
#1804
Comments
Getting same issue. It appears that the func.exe application is not getting installed via NPM. I worked around this by downloading the zip from https://functionscdn.azureedge.net/public/3.0.2106/Azure.Functions.Cli.win-x64.3.0.2106.zip and extracting it into the bin folder manually. It appears to be an issue with the install.js script. I got the following error when installing via NPM
|
@joshuapetryk, your error is because you have @seed-of-apricot, are other npm packages working ok for you, if you have them? What happens when you do Can you check the contents of And if nothing works, I would suggest removing |
I'm having the same problem. After installing with the This install process looks like this: ❯ npm install -g azure-functions-core-tools@3 --unsafe-perm true
C:\Users\Michael.Currie\AppData\Roaming\npm\func -> C:\Users\Michael.Currie\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
C:\Users\Michael.Currie\AppData\Roaming\npm\azurefunctions -> C:\Users\Michael.Currie\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
C:\Users\Michael.Currie\AppData\Roaming\npm\azfun -> C:\Users\Michael.Currie\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
> azure-functions-core-tools@3.0.2106 postinstall C:\Users\Michael.Currie\AppData\Roaming\npm\node_modules\azure-functions-core-tools
> node lib/install.js
attempting to GET "https://functionscdn.azureedge.net/public/3.0.2106/Azure.Functions.Cli.win-x64.3.0.2106.zip"
[------------------] Downloading Azure Functions Core Tools+ azure-functions-core-tools@3.0.2106
added 53 packages from 33 contributors in 1.278s It never downloads a 219 MB zip and finishes in a few seconds. The issue persists through uninstalls/reinstalls. |
Thanks - Missed the -g switch. I am still getting the same issue though - the zip file doesn't actually download. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I'm getting the same error. I've used 'npm i -g azure-functions-core-tools@3 --unsafe-perm true' to install the tools from an elevated command prompt (Windows Terminal) it installs fine, but any func command results in the mentioned error. uninstalling then reinstalling does not solve the issue. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Same issue with me. Looking at the error message:
I think the key problem may be the path: If someone can point me in the right direction of where this path is put together, I'd be happy to bring in a PR for it. |
@nibblesnbits looks like that is here: https://github.com/Azure/azure-functions-core-tools/blob/dev/src/Azure.Functions.Cli/npm/lib/main.js#L12 This probably should use path.join, maybe a recent change in Node caused this to no longer work. // @ankitkumarr |
Thank you all for your patience. Thanks @mhoeger for finding the root cause (below) offline! The issue was during the unzip step where Once we updated the For now, if this happens you can follow these steps to mitigate yourselves --
These steps should download and extract the core-tools to the |
@ankitkumarr Sorry for not responding to your mention for a while. I have tried the steps you described in the latest comment and made it work, thank you! |
@seed-of-apricot, thanks for the update. I will update my comment. With the interest of time in mind, we updated the packages and this should be fixed in the next release. |
I installed the package globally, created a new project through VSCode extension and tried to run the sample without any changes. The error I get is:
So, how about
func
itself?What happens in line 298...?
I installed both
2.7.2100
and3.0.2106
but neither has worked.The text was updated successfully, but these errors were encountered: