npm is not recognized as internal or external command, operable program or batch file
Add the Nodejs path in your environment variables.
- Go to Environment variables
- Add the below variable under the ‘User variable’,
Variable = npm Value = C:\Program Files\nodejs\
- Reopen your command prompt or terminal and enter the below command,
npm
It should work.
Screenshot:
Leave a comment