Ekliptor / WolfBot

Crypto currency trading bot written in TypeScript for NodeJS
https://wolfbot.org
GNU Affero General Public License v3.0
710 stars 215 forks source link

Example code doesn't work. #19

Closed Industrial closed 5 years ago

Industrial commented 5 years ago

Hi. Upon running node app.js --debug --config=Noop --trader=RealTimeTrader --noUpdate --noBrowser I get:

Error: Cannot find module '@ekliptor/apputils'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:655:15)
    at Function.Module._load (internal/modules/cjs/loader.js:580:25)
    at Module.require (internal/modules/cjs/loader.js:711:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/home/tom/Code/Code9/WolfBot/app.ts:42:1)
    at Module._compile (internal/modules/cjs/loader.js:805:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
    at Module.load (internal/modules/cjs/loader.js:672:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
    at Function.Module._load (internal/modules/cjs/loader.js:604:3)
Ekliptor commented 5 years ago

you must run tsc in all folders of node_mudules/@ekliptor as mentioned in the readme. Or let your IDE do it for you.

Industrial commented 5 years ago

IDE? I don't use an IDE.

You should provide: 1) A simple npm install should be enough to install all dependencies in a Node.js project. Why doesn't it work like this? 2) Proper tooling. If NPM Install can't solve it for you, add NPM scripts that prepare the installation so that it is usable. 3) End up with a take this command, run it, presto, program runs scenario, instead of vague instructions to just run a tool or let the IDE manage it or whatever.

Industrial commented 5 years ago

@Ekliptor Can I help, by providing PR's?

Ekliptor commented 5 years ago

sure. WolfBot includes a lot of my other modules (from my projects that are not open source), but it's very well separated from it. So you can easily make PRs for WolfBot to add more features