Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7949789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:04:43+00:00 2026-06-04T02:04:43+00:00

So I went to Git Bash and typed npm install socket.io I found the

  • 0

So I went to Git Bash and typed npm install socket.io I found the the directory in my user folder: C:\Users\weka\node_modules… anyway, I dragged the socket.io folder into my project www folder because I am using WAMP server.

So, here’s my server.js for testing:

var app = require('express').createServer();
var io = require('socket.io').listen(app);

io.sockets.on('connection', function (socket) {
console.log('Someone connected!');
socket.on('set nickname' , function (nickname) {
socket.nickname = nickname;
console.log(nickname + ' just connected!');
});

});

app.listen(8080);

and I go into cmd and type node C:\wamp\www\gameTest\server.js

and I get the error that it cannot find the module called express. I thought I downloaded socket.io? I am a newb when it comes to GitHub.. so I probably did it wrong. :\

Help?

UPDATE: I found out I hadn’t installed it. OK, I typed npm install express and I now I have express folder in my node_modules folder.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:04:44+00:00Added an answer on June 4, 2026 at 2:04 am

    express and socket.io are different libraries. Just npm install express from the root of your app.

    Also, make sure that your node dependencies are in a folder called node_modules – that’s the convention used for module resolution. So, you should have a file structure that looks something like:

    /some-app
        /node_modules
            /express
            /socket.io
        server.js
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My git folder looks like: c:\mygits\project1.git\ So I went into that project1.git folder, and
I wanted to install a local GIT server on windows so I went to
I went through the steps to install git and the heroku gem and successfully
I like how you can see what went into a git with git show
I was watching a video on Git and the guy went out of his
we needed to convert CVS to GIT yesterday. Everything went fine except that I
Using git log I found an old version of my project that I wanted
I was trying to install jquery bundle and during installation power went off. I
git version 1.7.7.4 I went to clone from my git respository and I got
I'm working with a git repository using git-svn. Everything went fine until the day

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.