1

Installed the latest node.js on Windows8. If I type

 npm -version 

in the command console I correctly see

1.4.23

However, whenever I use the install command, regardless of the argument, I get the following error

Error: ENOENT, stat 'C:\Users\foo\AppData\Roaming\npm'

What gives? Could this be a permissions issue or?

Bachalo
  • 6,965
  • 27
  • 95
  • 189

3 Answers3

11

you can just create an empty folder with "npm" name in path shown in Error

Atul Sharma
  • 718
  • 4
  • 11
5

I had the same problem when I tried to install NPM on my work computer. I believe that there is a problem with the installer. I fixed this problem by installing an older version of NPM.

or you can add the folder npm under AppData/Roaming.

Look at this for more information: node.js and npm for windows

Community
  • 1
  • 1
SivaDotRender
  • 1,581
  • 4
  • 21
  • 37
3

I had the same Problem in Windows 8.1 MSDN-VM.

creating the npm Folder manualy fixed it for me. C:\Users\foo\AppData\Roaming**npm**

Jens Reh
  • 31
  • 2