'npm' is not recognized as internal or external command : Solution

Introduction

When you have installed node.js on your OS but unable to run the npm commands, this blog will tell you how to fix this issue.
intro

Let's get to it!

You might have already installed Node.js from the official website. with your respective OS. If you've not installed, click here.
Screenshot (317)

  1. To make sure that you have node installed on your computer --
    Go to your drive (C:) -> Program Files -> you should find the node folder.
    step1

  2. Copy the folder path of node
    Click on the node folder. To copy the path, you can click on the drop down symbol, then use Ctrl+C on the path OR right click on the path and then click copy address.
    step2
    👇
    step2.1

  3. Change settings
    Go to Control Panel -> View advanced system settings

    step3
    👇
    In the Advanced tab -> click on Environment variables
    step3.1
    Under System variables, click on Path and then click on edit as shown in the picture below emoji
    step3.2

Click on New
step3.3

In the new text field appeared, paste the folder path that you copied earlier and then click on OK
steplast

You're done!
Now, you will not get any errors.
finalimg

Thank you for reading!🙌

Like it and share it for more such articles.

Like what I do?

Support me by buying me a coffee ☕.

18