In this Azure tutorial, we will discuss how to fix the error. You must have the Azure Functions core tools installed. I got this error while running an Azure function project using Visual Studio Code on my local machine.
Table of Contents
You must have the Azure Functions core tools installed to debug your local functions
Recently, while creating one of the Azure Functions Projects, I got the below Popup, which showed me a warning: “You must have Azure Functions core tools installed“.
Then I clicked on the Install button to install that.

After I clicked on the Install button, I got the below error
12:01:28 PM: Running command: “npm install -g azure-functions-core-tools@3″…
npm ERR! code EEXIST
npm ERR! path C:\Users\Bijay\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js
npm ERR! dest C:\Users\Bijay\AppData\Roaming\npm\func
npm ERR! EEXIST: file already exists, cmd shim ‘C:\Users\Bijay\AppData\Roaming\npm\node_modules\azure-functions-core-tools\lib\main.js’ -> ‘C:\Users\Bijay\AppData\Roaming\npm\func’
npm ERR! File exists: C:\Users\Bijay\AppData\Roaming\npm\func
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with –force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Bijay\AppData\Roaming\npm-cache_logs\2020-08-17T06_31_31_113Z-debug.log
you can see here, It is showing me some reference files already exist.

You must have the Azure Functions Core Tools installed to debug your local functions [Solved]
To fix this issue, first, I opened a new terminal and tried executing the below command.
You can also use the nodejs command prompt to execute the below cmdlet.
npm install -g azure-functions-core-tools@3But again, I got the same error

So now what I did is I ran the below command with — force. You can see that it started the installation of the Azure Functions Core Tools without any issues.
npm install -g azure-functions-core-tools@3 --force
When I tried creating the Azure Functions Project using Visual Studio Code, I got no errors.
You may also like following the Below Articles
- How To Install Azure Functions Core Tools In Visual Studio Code
- Azure Functions Runtime Is Unreachable
- How to uninstall Azure Functions core tools
Conclusion
We have discussed how to fix the error. You must have the Azure Functions Core Tools installed to debug your local functions. Hope it will help you to fix your issue as well !!!.
I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more
