when I'm typing commands which starts with npm, it shows the massage of , "'npm' is not recognized as internal or external command"
Asked
Active
Viewed 1.9k times
2
-
2Check this https://stackoverflow.com/questions/20992723/npm-is-not-recognized-as-internal-or-external-command-operable-program-or-bat – NaKib Dec 01 '21 at 11:02
-
Does this answer your question? ['npm' is not recognized as internal or external command, operable program or batch file](https://stackoverflow.com/questions/20992723/npm-is-not-recognized-as-internal-or-external-command-operable-program-or-bat) – SuperStormer Dec 02 '21 at 01:09
1 Answers
2
Download node.js
First of all Download and install node.js from here Nodejs.org
In windows 11
There are two ways to do this
the short way is,
1. Go to settings
2. Now you are on System window, click About
3. Next, Click on Advanced system settings button
4. Then, Click Environment Variable on the dialogue box
5. From Environment Variable, Select Path
6. And then click Edit
7. click New
8. At the text box, add ; C:\Program Files\node.js\
9. Click Ok all the open dialogue box
Reference: Fix ~ npm not recognized as internal or external command (Note: this is my own blog[include images also)

kavindu udhara
- 70
- 6