1

I uninstalled Node.js and reinstalled it to fixed a different error.Now In visual studio terminal for bash and cmd, I am getting

bash: npm: command not found.
Caleb
  • 439
  • 8
  • 29
  • Maybe with https://stackoverflow.com/questions/42606837/how-do-i-use-bash-on-windows-from-the-visual-studio-code-integrated-terminal ? – fedeteka Jun 05 '20 at 23:36

2 Answers2

0

Uninstall and Reinstall fixed it

Caleb
  • 439
  • 8
  • 29
0

Copy the address of file where your nodejs is stored and then go to Enviroment variables advance setting select "path" from upper window list,

enter image description here

then click edit and then add a ";" in given path then paste the copied address of the nodejs file

Now you can run npm from anywhere !

Community
  • 1
  • 1
Hrithik Jaiswal
  • 74
  • 1
  • 2
  • 9