1

I'm trying to install node.js package with npm but it's giving me that error.

Error: ENOENT, stat 'C:\Users\Zain\AppData\Roaming\npm
5
  • what is the version of node? Commented Aug 1, 2014 at 5:28
  • did you install this with the normal nodejs.org windows installer? Commented Aug 1, 2014 at 5:33
  • When do you get this error? Please edit your post to show the relevant console log including your initial npm install ... command Commented Aug 1, 2014 at 5:34
  • I'm new to Node.js. I am trying to install socket.io with npm install socket.io and just getting that error back :-( Commented Aug 1, 2014 at 5:36
  • What is the output of npm -v? Commented Aug 1, 2014 at 5:58

1 Answer 1

10

Had the same problem today from a clean install as yours. Solved manually creating the

C:\Users\Myself\AppData\Roaming\npm

directory.

Hope it helps

Sign up to request clarification or add additional context in comments.

1 Comment

Great thanks user211789. I've done it before your answer by running this npm install -g socket.io.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.