Jagadeesh
Jagadeesh

Reputation: 2097

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?

Upvotes: 3

Views: 19428

Answers (2)

Dinesh Parmar
Dinesh Parmar

Reputation: 41

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

Upvotes: 3

K.Smith
K.Smith

Reputation: 13

npm --version is the windows command line prompt

Upvotes: -1

Related Questions