Resolve the error: ‘npm/gulp is not recognized as an internal or external command operable program or batch file’ while running npm and gulp commands through Visual Studio

To resolve the issue follow the steps:

1.Make sure that you have node installed on your computer

2.Copy the folder path of the node
C:\Program Files\nodejs\

3.Change settings
Go to Control Panel -> View advanced system settings
In the Advanced tab -> click on Environment variables

Under System variables, click on Path and then click on Edit as shown below

Paste the folder path that you copied earlier and then click on OK

Note: If this doesn’t work, uninstall Node and NVM and reinstall in a new folder. Paste the path of the new folder where the node will be set in the system variable list.

Leave a comment

Your email address will not be published. Required fields are marked *