question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When installing Azure Functions Core Tools under latest Node.js version, the extracted files are corrupt

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Reactions:3
  • Comments:8

github_iconTop GitHub Comments

7reactions
Charles-Gagnoncommented, Apr 20, 2023

FYI - for anyone else hitting this I was able to fix it by pinning the Node version to 18.15, it seems 18.16+ is where things start breaking

https://github.com/Azure/azure-functions-sql-extension/pull/818

3reactions
KondzioSSJ4commented, Apr 21, 2023

If you use Azure Functions Core Tools for Azure DevOps build then you also need to change the path to node modules because they are no longer in the /usr/local/lib/node_modules directory but it’s located in /opt/hostedtoolcache/node/18.5.0

so to summarize I needed to add a stage that “updates” npm to 18.5 version like:

- task: NodeTool@0
  displayName: 'Use Node 18.5.x'
  inputs:
    versionSpec: 18.5.x

and change the path from:

/usr/local/lib/node_modules/azure-functions-core-tools/bin/func.dll

to

/opt/hostedtoolcache/node/18.5.0/x64/lib/node_modules/azure-functions-core-tools/bin/func.dll
Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure function, Incompatible Node.js version (v18.15.0)
In vscode, starting a debug a Azure Function and error message, Incompatible Node.js version (v18.15.0). Refer to our documentation to see ...
Read more >
How to fix Azure functions: Incompatible Node.js version ...
2 Answers. Make sure your Function core tools version and Function Run time version should be 4. *. It worked.
Read more >
Troubleshooting Python deployments on App Service Linux -
For Azure Python Functions there are three build actions supported ... The zip file received by deployment engine was corrupt because of the ......
Read more >
Azure Functions Core Tools
The Azure Functions Core Tools provide a local development experience for creating, developing, testing, running, and debugging Azure Functions.
Read more >
Azure Functions Core Tools with Python on Mac M1/M2 ...
If you cannot locate the packages, it is likely that you are operating under the incorrect Python version. To resolve this, utilize pyenv...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found