Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.3k stars 429 forks source link

Node version on Windows? #3621

Open phil-w opened 5 months ago

phil-w commented 5 months ago

Running latest version of azure-functions-core tools and typing into my VS Code console: swa start http://localhost:5000 --api-location ./api

I get a couple of lines of red text in response, and nothing more: Found Azure Functions Core Tools v4 which is incompatible with your current Node.js v21.7.1. https://aka.ms/functions-node-versions for more information.

I was originally using Node LTS 20.11.1 on 64-bit Windows, everything up to date. I then optimistically tried 21.7.1 [as above] - well you never know - but ended up regressing to 18.19.1, which works as expected.

I can't believe no one else has that problem... but couldn't google it down, so possibly it's something else entirely, but here you go anyway.

cmalosse commented 5 months ago

This is actually an issue of swa cli : see here

Exact same behavior here. Is it related to the way swa cli uses azure-functions-core-tools ? The tools themselves seem to support higher Node version. Downgraded to Node 18 and it works (but it's a pain)