Error: Cannot find module './build/Release/analytics.node'
I just installed Zenbot on my new Ubuntu 16.04 VM, but what ever I do, I just get errors such as:
xxxx@Ubuntu-16:~/zenbot$ zenbot list-selectors
module.js:471
throw err;
^
Error: Cannot find module './build/Release/analytics.node'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.
xxxx@Ubuntu-16:~/zenbot$ zenbot sim --help
module.js:471
throw err;
^
Error: Cannot find module './build/Release/analytics.node'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.
What's wrong with this?? :-o
Hey. At me something similar.
server_1 | Error: Cannot find module './conf-sample'
server_1 | at Function.Module._resolveFilename (module.js:527:15)
server_1 | at Function.Module._load (module.js:476:23)
server_1 | at Module.require (module.js:568:17)
server_1 | at require (internal/module.js:11:18)
server_1 | at module.exports (/app/boot.js:12:18)
server_1 | at Object.
node -v v4.2.6 npm -v v3.5.2
Duplicated: see #432 (already solved) "Guys, please upgrade to nodejs 8, that should solve the build problem. Please make sure to rm -rf node_modules && npm install to reinstall everything."
node -v v8.7.0 npm -v v5.4.2 the error is repeated
Ok, I too installed the newer node.js, same versions that zemelax just listed. Now when I do "npm install", I get the following:
xxxx@Ubuntu-16:~/zenbot/zenbot$ sudo npm install npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone -q git://github.com/mkmarek/forex.analytics.git /home/xxxx/.npm/_cacache/tmp/git-clone-a1afc987 npm ERR! /home/xxxx/.npm/_cacache/tmp/git-clone-a1afc987/.git: Permission denied npm ERR!
npm ERR! A complete log of this run can be found in: npm ERR! /home/xxxx/.npm/_logs/2017-10-19T18_36_32_331Z-debug.log
Tried to Google all around about that, did not get any hits, can someone help?
I tried with "yarn" (do a npm install yarn before) instead of "npm install" and it finally worked. Also, had to remove the previous zenbot instance. But yes, the installation could be improved (avoiding sudo npm would be great). Also, yesterday Github had some issues (I wasn't able to clone using git, just with https...) https://status.github.com/messages .
[email protected] install /home/masternode/Documents/zenbot/zenbot/node_modules/talib node ./src/lib/build.js && node-gyp configure && node-gyp build
building talib functions...
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/masternode/Documents/zenbot/node_modules/forex.analytics/build'
gyp ERR! System Linux 4.10.0-37-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure"
gyp ERR! cwd /home/masternode/Documents/zenbot/node_modules/forex.analytics
gyp ERR! node -v v8.7.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node-gyp configure && node-gyp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/masternode/.npm/_logs/2017-10-21T00_52_40_441Z-debug.log
got this too node version 8.7, npm version 5.5.1 running VM Ubuntu 16.0.4 I did everything in #432
Ubuntu 16.04 Tested
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install build-essential mongodb
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
git clone https://github.com/carlos8f/zenbot.git
cd zenbot
npm install
./zenbot.sh trade --paper
Sniper7kills, I don't know why, but when I copy-pasted your lines on my Ubuntu, it just started working! \o/
I surely did try all those command previously also, but it might be that used "sudo" in front of curl-, git- and npm install- commands also..? I'm not sure though, and don't know if would matter anyway?
Thank you, you´re the best! :=)
@jasurakk Glad to hear, it was probably the lack of the build-essentials being installed; just an fyi don't use sudo if you don't need to (I.E. Curl, Git, npm install), it runs commands as root which can cause you major issues if your not careful.
If this solved your issue you might want to close it ;)