Upgrade Azure Functions Core Tools -fail

I am developing several projects that involve the Azure Functions feature (ya know serverless and all...).
When I opened up my VS code I got the following message and faithful as I am I clicked "Update".

Except this did not work I got an error about some npm package missing and so on.
So I decided to do it manually:
npm install -g azure-functions-core-tools@2
This did not give any issues however the message above kept on returning. So I updated, but it was not updated.
Then I remembered I installed my tools using Chocolatey and it seems that version was still being used everywhere. So I used the choco way of updating and all was fine:
choco upgrade azure-functions-core-tools
-- Happy updating