Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Cannot find module './build/Release/analytics.node' #432

Closed
leota opened this issue Aug 2, 2017 · 10 comments
Closed

Cannot find module './build/Release/analytics.node' #432

leota opened this issue Aug 2, 2017 · 10 comments
Labels

Comments

@leota
Copy link

leota commented Aug 2, 2017

Hi guys, I'm trying to run Zenbot on Ubuntu server 16.04 with node v7.10.1, npm 4.2.0 and python 2.7. After npm install and npm link, if I try to launch any zenbot commands I get this:

module.js:472
    throw err;
    ^

Error: Cannot find module './build/Release/analytics.node'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/leota/zenbot/node_modules/forex.analytics/index.js:1:79)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)

Has anyone experienced similar issues?

@DeviaVir DeviaVir added the bug label Aug 3, 2017
@JaFarmland519
Copy link

Same issue here, Debian with Node v8.2.1, npm 5.3.

@leota
Copy link
Author

leota commented Aug 5, 2017

Working! Problem was that I run npm install without having "build-essential" installed on my machine, so I installed the package and run npm install again, but without completely wiping previously installed node_modules. So If you're starting with a fresh new install (I'm testing on DigitalOcean droplet Ubuntu 16.04) this has worked for me:

    #install node 
    curl -sL https://deb.nodesource.com/setup_8.x | bash -
    apt-get install nodejs

    #install build-essential
    apt-get install build-essential

    #install python 2
    apt-get install python

    # clone repo and install
    git clone https://github.com/carlos8f/zenbot.git
    cd zenbot
    npm install
    #optional
    npm link

@leota
Copy link
Author

leota commented Aug 5, 2017

@trietdvn
Copy link

trietdvn commented Aug 8, 2017

Same issue on aws ubuntu 16.04 and aws amazon ami linux.

@carstenroesner
Copy link

Same issue here on Ubuntu server 16.04 with node v6.11.2, npm 3.10.10 and python 2.7.12:

/bitcoin/zenbot# zenbot
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.<anonymous> (/bitcoin/zenbot/node_modules/forex.analytics/index.js:1:79)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

@crubb
Copy link
Contributor

crubb commented Aug 10, 2017

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.

Please report back!

@vitorego
Copy link

I had the same problem and now it works after upgrade do node-js 8 and clear modules folder

thanks

@crubb
Copy link
Contributor

crubb commented Sep 19, 2017

A small log from the Discord channel from a user with the same error:

[18:53] derivagral: i'm not sure what you mean? this is from a checked out master on an ubuntu16 digitalocean box
[18:54] derivagral: i upgraded npm from 5.3 to 5.4 and am rerunning npm install atm, perhaps it'll just go away
[18:58] derivagral: looks like it works now, ty for the ping
[19:10] khinklenj: How did you upgrade to 5.4
[19:12] derivagral: v5.3 bugged me to run npm i -g npm, after which i removed node_modules & reran npm install

@HeyIamJames
Copy link

Using node 8.9.1 > still cant get it ti work :(

C:\zenbot>npm install
C:\zenbot>npm install
npm ERR! path C:\zenbot\node_modules\forex.analytics
npm ERR! code EISGIT
npm ERR! git C:\zenbot\node_modules\forex.analytics: Appears to be a git
repo or submodule.
npm ERR! git C:\zenbot\node_modules\forex.analytics
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

thanks for any insight.

@rafihm
Copy link

rafihm commented Dec 4, 2017

@HeyIamJames
Remove the node_modules directory and try it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

9 participants