Giter Site home page Giter Site logo

Can not get it to run about nodemmo HOT 4 CLOSED

funjspi avatar funjspi commented on July 2, 2024
Can not get it to run

from nodemmo.

Comments (4)

arielfr avatar arielfr commented on July 2, 2024

¿Did you install the correct dependencies versions?

from nodemmo.

funjspi avatar funjspi commented on July 2, 2024

i think so...

I rolled back socket.io to the version you have in the code. but still getting errors:

`/WEB/mmo/node_modules/socket.io/lib/store.js:35
Store.prototype.proto = EventEmitter.prototype;
^

TypeError: Cannot read property 'prototype' of undefined
at Object. (/WEB/mmo/node_modules/socket.io/lib/store.js:35:42)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object. (/WEB/mmo/node_modules/socket.io/lib/manager.js:16:13)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
`

This game you have written sounds really intruiging and I want to check it out. Making games without canvas is fascinating to me haha!

I'll keep poking at it when I get the time and see what I can figure out.

from nodemmo.

funjspi avatar funjspi commented on July 2, 2024

Okay figured it out.

  1. installed the dependencies listed on the package.json

  2. fixed the errors by switching every instance of:
    var EventEmitter = process. EventEmitter

To:
var EventEmitter = require('events')

After that it worked! Im going to poke around your code and see how you made this game because the map without a canvas is interesting to me.

from nodemmo.

arielfr avatar arielfr commented on July 2, 2024

Thanks @funjspi i will fix it later

from nodemmo.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.