1

I installed node on my windows 8 machine with no problems and then went to install the socket.io package to use for an assignment. After typing

npm install socket.io

I got a huge amount of errors.npm install socket.io errors

What I've tried so far: this - nodejs npm install socket.io error and this - NPM - Can't install socket.IO

The first answer in both. A lot of the other stuff I'm finding is for either windows 7 or Mac so I'm not sure if this is just a windows 8 thing.

0

2 Answers 2

1

As you can see in logs you have a permission error. Script doesn't have enough permissions to create directory in C:\\Program_Files\.... Use other directory instead or run command with Admin permissions.

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

2 Comments

Was that all? Wow! what gives it away? Is it EPERM code showing up? Regardless it worked. Thanks!
"Please try running this command again as root/Administrator" is a good indicator.
0

Try running npm install socket.io

except this time run the command line as an administrator. You can do this in Windows 8 by going to your app search, typing cmd, right-clicking then click 'Run as administrator'.

I feel this is the issue because your error message says 'Please try running this command again as root/Administrator'.

Comments

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.