After re-installing the Azure Functions Core Tools it works!
running npm install -g azure-functions-core-tools@4 fixed the problem
npm install -g azure-functions-core-tools@4