30

I just installed Nodejs on my new computer with Windows 8. I can't get npm to work on it. Although the node server starts fine:

Here's the error:

C:\Users\User\Documents\Source\Project>npm install 
Error: ENOENT, stat 'C:\Users\User\AppData\Roaming\npm'


C:\Users\User\Documents\Source\Project>npm start
Error: ENOENT, stat 'C:\Users\User\AppData\Roaming\npm'


C:\Users\User\Documents\Source\Project>
1
  • Manually creating a folder named 'npm' in the displayed path fixed the problem. Feb 19, 2015 at 6:40

2 Answers 2

85

you can try to create 'C:\Users\User\AppData\Roaming\npm' folder.

6
  • 2
    Did that. It worked too. But there are problems in the individual modules. For example: grunt doesn't work at all. Aug 4, 2014 at 15:27
  • 1
    This seems to be the correct solution. I tried downgrading to the above 0.10.29 but it looks like all you have to do is create your npm folder and all is well Aug 8, 2014 at 14:50
  • Creating new folder solved the problem :D Aug 15, 2014 at 17:06
  • Works on Node 0.10.31 on Windows 8.1 so far as getting you over that error, but still logs that it's missing the file C:\Windows\System32\package.json. Creating this however, still doesn't work. Sep 6, 2014 at 22:39
  • Worked on windows 7 too. Thanks!
    – Dan
    Oct 17, 2014 at 16:03
12

Latest version is not compatible with windows 8. Just download this files and it works in my windows 8 perfectly. http://blog.nodejs.org/2014/06/16/node-v0-10-29-stable/

5
  • This worked for me on Windows 8.1... thanks!
    – Michael
    Aug 5, 2014 at 16:33
  • 1
    Why would an older version work with Windows 8 but not the latest version? Doesn't make any sense. Aug 7, 2014 at 17:12
  • Actually I dont have any Idea.Sometime it is not compatible with new visions.I have also fallen this problem with xampp.I think it is the best solution.. Aug 11, 2014 at 7:26
  • Let's see, the accepted answer is pointing to an unknown binary on a file drop site. Brilliant.
    – spudone
    Nov 12, 2014 at 21:08
  • Please do not edit this back to your link. There's an official source, and I've changed it back to that. Nov 13, 2014 at 20:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.