Comments (6)
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.
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.
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.
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.
Ah, I left a step out.
Go back to official-ws/nodejs
and type npm install
in there as well.
from api-connectors.
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)
- ws.exit() not closing connection. Still able to retrieve data after it. HOT 2
- typo - auto-generated/python/README.md
- The latest version of npm is still 0.5.0 HOT 1
- Support For Multiplexing
- java 的api能用么?aPIKeyGet 报错
- How to get server time?
- Creation of order via bravado python takes >=10 requests of rate-limit
- Documentation: outdated references to bulk endpoints
- Limit orders require 11.05x the amount I'm trying to sell.
- many-exchanges-many-different-streams with watchOrderBook method for okx and bitmex. Algo starting point
- Getting negative rebalancedPnl when using WebSocket subscription
- latency issue from websocket python HOT 1
- Order Reject via API: Canceled: Order had ordType of Market\nSubmitted via API.
- Teknik
- Whatever I request, I get old data.
- How do I cancel orders in bulk in python?
- Some subscriptions have been moved to another endpoint
- websocket-client dependency for Python websocket API outdated
- android only?
- release bitmex-ws 1.5.0 on pypi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-connectors.