If you tried running the npm command in the Visual Studio Code terminal and are getting an error saying that it doesn’t exist then you need to install NODE.JS
This is one of the error messages you will see:
npm: The term ‘npm’ is not recognized as a name of a cmdlet, function, script file, or executable program, check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The steps involved for installing NODE.JS is easy to follow if you use the below steps:
- Download the Windows NODE.JS executable from here: https://nodejs.org/en/download/current
Once you download the file, make sure the Visual Studio Code application is not running and then install the executable
Once the installation is complete, make sure Visual Studio Code is not running and if it is, then you will need to close it down and start the program again. Open the terminal and then type:
npm -V
You will then see the version of NODE.JS that was install. In my case it is version is 10.5.0
You can then run npm commands.
Here’s a video you can follow along on how to install npm NODE.JS in Visual Studio Code:
If this article helped you in any way and you want to show your appreciation, I am more than happy to receive donations through PayPal. This will help me maintain and improve this website so I can help more people out there. Thank you for your help.
HELP OTHERS AND SHARE THIS ARTICLE
LEAVE A COMMENT
I am an entrepreneur based in Sydney Australia. I was born in Vietnam, grew up in Italy and currently residing in Australia. I started my first business venture Advertise Me from a random idea and have never looked back since. My passion is in the digital space, affiliate marketing, fitness and I launched several digital products. You will find these on the portfolio page.
I’ve decided to change from a Vegetarian to a Vegan diet and started a website called Veggie Meals.
I started this blog so I could leave a digital footprint of my random thoughts, ideas and life in general.
If any of the articles helped you in any way, please donate. Thank you for your help.
Affiliate Compensated: there are some articles with links to products or services that I may receive a commission.