Skip to content

Error: Cannot find module 'socket.io-client/dist/socket.io.min.js' #138

@rafelamer

Description

@rafelamer

I'm trying to run signalmaster in a CentOS 7 machine. I'm doing the following to install it

git clone https://github.com/andyet/signalmaster.git
cd signalmaster
npm install

and then

node server.js

I get the error

module.js:478
throw err;
^

Error: Cannot find module 'socket.io-client/dist/socket.io.min.js'
at Function.Module._resolveFilename (module.js:476:15)
at Function.resolve (internal/module.js:27:19)
at Server.serveClient (/root/signalmaster/node_modules/socket.io/lib/index.js:101:33)
at new Server (/root/signalmaster/node_modules/socket.io/lib/index.js:48:8)
at Function.Server (/root/signalmaster/node_modules/socket.io/lib/index.js:40:41)
at module.exports (/root/signalmaster/sockets.js:6:23)
at Object. (/root/signalmaster/server.js:31:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions