GithubHelp home page GithubHelp logo

Delta server issue about api-connectors HOT 6 CLOSED

bitmex avatar bitmex commented on May 2, 2024
Delta server issue

from api-connectors.

Comments (6)

STRML avatar STRML commented on May 2, 2024

Hi Johan,

That error occurs from a very old version of NodeJS.

Try installing Node 8.x from https://github.com/nodesource/distributions#installation-instructions.

from api-connectors.

JohanRensink avatar JohanRensink commented on May 2, 2024

Updated to 8.5.0:

/api-connectors/official-ws/delta-server# node -v
v8.5.0

However:

/api-connectors/official-ws/delta-server# node index.js
module.js:529
    throw err;
    ^

Error: Cannot find module 'lodash'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/root/api-connectors/official-ws/nodejs/index.js:2:11)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)

I've tried the solutions at https://stackoverflow.com/a/28480226/2385490 but they had no effect. It's fairly unclear to me where it would like to find this 'lodash' thing.

from api-connectors.

STRML avatar STRML commented on May 2, 2024

Ah, I suppose I should rewrite these docs from more of a beginner's view, I am assuming quite a bit of Node experience.

Type npm install in the delta-server's directory to install dependencies.

from api-connectors.

JohanRensink avatar JohanRensink commented on May 2, 2024

You're right -> I really have no idea what I'm doing :-) thanks for being so helpful.

I coincidentally did the npm install thing earlier, because it was in the documentation though. Result probably means I'm almost there though:

/api-connectors/official-ws/delta-server# npm install
npm WARN lifecycle [email protected]~postinstall: cannot run in wd %s %s (wd=%s) bitmex-
[email protected] cd ../nodejs && npm install /root/api-connectors/official-ws/delta-server
npm WARN [email protected] No repository field.

up to date in 0.539s

from api-connectors.

STRML avatar STRML commented on May 2, 2024

Ah, I left a step out.

Go back to official-ws/nodejs and type npm install in there as well.

from api-connectors.

JohanRensink avatar JohanRensink commented on May 2, 2024

Up and running!

For future reference: This still generates some warnings for me (similar to the ones in my last post)

Thank you very much for the help.

from api-connectors.

Related Issues (20)

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.