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. Commented Feb 19, 2015 at 6:40

2 Answers 2

85

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

5
  • 2
    Did that. It worked too. But there are problems in the individual modules. For example: grunt doesn't work at all. Commented 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 Commented Aug 8, 2014 at 14:50
  • Creating new folder solved the problem :D Commented 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. Commented Sep 6, 2014 at 22:39
  • That should be the correct solution! Worked for me!
    – droidpl
    Commented Dec 30, 2014 at 11:26
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/

4
  • 1
    Why would an older version work with Windows 8 but not the latest version? Doesn't make any sense. Commented 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.. Commented 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
    Commented 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. Commented Nov 13, 2014 at 20:21

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