Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm command not working after installing nodejs in windows10?

i can find npm.cmd command prompt picenter image description herei have installed nodejs from nodejs website. when i typed

node -v

It gives me the version as

  6.11.2

But when i type

npm -v it doesnt gives me any results. I have done reinstalling nodejs several times.

my installation path is

C:\Program Files\nodejs

any help?

this is my git bash command prompt where you can see npm is not giving any result my environment variable after installing nodejs is that anything wrong?

like image 780
Jagadeesh Avatar asked Jun 29 '26 09:06

Jagadeesh


1 Answers

Run command where npm in node.js cmd, you will get path where it referring.

Remove npm folder from C:\Users\dname\AppData\Roaming\npm

like image 60
Dinesh Parmar Avatar answered Jul 01 '26 00:07

Dinesh Parmar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!