You have downloaded and installed npm and then, typed npm command but getting the error
First, download and install npm from here. Chose Windows Installer(.msi). If you have tried npm command after installation, you will get this error "npm not recognized as internal or external command". In order to solve this problem, follow below steps:
A picture tells thousand words:
"npm not recognized as internal or external command"OR You want to know how to download and use npm? Then, you are at the right place! This short post will teach you the simple steps in order to successfully install and run npm. So, here are the steps.
First, download and install npm from here. Chose Windows Installer(.msi). If you have tried npm command after installation, you will get this error "npm not recognized as internal or external command". In order to solve this problem, follow below steps:
- Go to MyComputer Properties.
- Click Advanced System Settings from the Left bar of Window.
- Now you have System Properties window. Click Advanced
- Then, Click Environment Variable... button
- Now you have Environment variable window: From User Variable, Select Path
- Click Edit
- Now in Variable Value, add the path of where you have installed npm. Like I have installed it in C drive (C:\Program Files\nodejs\). If you have installed in other drives then please act accordingly.
- OK all open dialogue
- Now the final step, Restart your computer.
- Congrats you have done, now you can use npm commands
Learn More: C or HTML? What should I choose?
Steps to resolve "npm not recognized as internal or external command" error Learn More: How to regularly auto Backup your MySQL Databases |