In this Azure article, we will discuss the quick steps to fix the error npm : the term ‘npm’ is not recognized as the name of a cmdlet, function, script file, or operable program. check the spelling of the name, or if a path was included, verify that the path is correct and try again. at line:1 char:1 + npm -v + ~~~ + categoryinfo : objectnotfound: (npm:string) [], commandnotfoundexception + fullyqualifiederrorid : commandnotfoundexception. I got this error while installing the Azure Function Core Tools.
Table of Contents
The term ‘npm’ is not recognized as the name of a cmdlet
Recently, I was trying to install Azure Function Core Tools in my newly installed Visual Studio Code, and I was trying to execute the below command in the VS code terminal.
npm install -g azure-functions-core-tools@3 --forceThe moment I started executing, I got this error. Below is the complete error message.
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:1 char:1
+ npm install -g azure-functions-core-tools@3 --force
+ ~~~
+ CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionYou can see the same error in the below screenshot.
![npm is not recognized as the name of a cmdlet node : the term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. check the spelling of the name, or if a path was included, verify that the path is correct and try again. at line:1 char:1 + node -v + ~~~~ + categoryinfo : objectnotfound: (node:string) [], commandnotfoundexception + fullyqualifiederrorid : commandnotfoundexception](https://azurelessons.com/wp-content/uploads/2023/10/npm-is-not-recognized-as-the-name-of-a-cmdlet-1024x609.jpg)
The term ‘npm’ is not recognized as the name of a cmdlet [Solved]
To solve this error, you need to install Node.Js. Since I have newly installed the Visual Studio IDE, I just missed installing it.
Just follow the below steps.
- You can download the Node.js setup file based on your operating system.
- Double-click on the file to start to install.

3. Click on the Next button.

4. accept the License agreement and click on the Next button, choose the installation path on the next popup, and then click the next button on the further pop-ups.
![visual code the term npm is not recognized as the name of a cmdlet npm : the term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. check the spelling of the name, or if a path was included, verify that the path is correct and try again. at line:1 char:1 + npm init -y + ~~~ + categoryinfo : objectnotfound: (npm:string) [], commandnotfoundexception + fullyqualifiederrorid : commandnotfoundexception](https://azurelessons.com/wp-content/uploads/2023/10/visual-code-the-term-npm-is-not-recognized-as-the-name-of-a-cmdlet.jpg)
5. Finally, click the Install and Yes buttons on the next pop-up to start the installation process.

After the installation of the Node.js, I was able to run the same command successfully.
You can see the below screenshot for your reference.
![npm is not recognized 1 npm : the term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. check the spelling of the name, or if a path was included, verify that the path is correct and try again. at line:1 char:1 + npm install + ~~~ + categoryinfo : objectnotfound: (npm:string) [], commandnotfoundexception + fullyqualifiederrorid : commandnotfoundexception](https://azurelessons.com/wp-content/uploads/2023/10/npm-is-not-recognized-1-1024x556.jpg)
The term npm is not recognized as the name of a cmdlet vscode – Video Tutorial
You may also like following the below articles.
Wrapping Up
In this Azure article, we learned the quick steps to fix the error npm : the term ‘npm’ is not recognized as the name of a cmdlet, function, script file, or operable program. check the spelling of the name, or if a path was included, verify that the path is correct and try again. Thanks for reading this article !!!

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
