npm commands not work

31 views
Skip to first unread message

alisson...@gmail.com

unread,
Sep 18, 2016, 4:47:26 AM9/18/16
to nodejs
No npm command (all!) is working on my Windows 10.

Example:

npm -v

It does not display any information and cmd crashes. Only unlocks if I hit CTR + C and inform "Y":

enter image description here

I've tried reinstalling node.js (v6.6.0 x64 and v5.12.0 x86), tried npm versions v3.10.3 and v3.10.7, but all without success.

How can I fix it?

O haya

unread,
Sep 23, 2016, 12:15:44 PM9/23/16
to nodejs
Hi,

I'm new here and don't know if this will help (at least you'll know that it's possible), but FYI, I installed node and npm on Windows 10 and it works ok:

Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Users\xxxxxx>npm -v
3.10.3

C:\Users\xxxxxx>node -v
v6.6.0

C:\Users\xxxxxx>where node
C:\Program Files\nodejs\node.exe

C:\Users\xxxxxx>where npm
C:\Program Files\nodejs\npm
C:\Program Files\nodejs\npm.cmd
Reply all
Reply to author
Forward
0 new messages