Zenbot: npm install error

Created on 30 Jul 2017  路  10Comments  路  Source: DeviaVir/zenbot

zenbot-master# npm install
> [email protected] install /zenbot-master/node_modules/talib
> node ./src/lib/build.js && node-gyp configure && node-gyp build
building talib functions...
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/root/.nvm/versions/node/v6.11.0/lib/node_modules/npm/node_modules/which/which.js:14:12)
gyp ERR! stack     at F (/root/.nvm/versions/node/v6.11.0/lib/node_modules/npm/node_modules/which/which.js:69:19)
gyp ERR! stack     at E (/root/.nvm/versions/node/v6.11.0/lib/node_modules/npm/node_modules/which/which.js:81:29)
gyp ERR! stack     at /root/.nvm/versions/node/v6.11.0/lib/node_modules/npm/node_modules/which/which.js:90:16
gyp ERR! stack     at /root/.nvm/versions/node/v6.11.0/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5
gyp ERR! stack     at /root/.nvm/versions/node/v6.11.0/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Linux 4.4.0-83-generic
gyp ERR! command "/root/.nvm/versions/node/v6.11.0/bin/node" "/root/.nvm/versions/node/v6.11.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /zenbot-master/node_modules/talib
gyp ERR! node -v v6.11.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Linux 4.4.0-83-generic
npm ERR! argv "/root/.nvm/versions/node/v6.11.0/bin/node" "/root/.nvm/versions/node/v6.11.0/bin/npm" "install"
npm ERR! node v6.11.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node ./src/lib/build.js && node-gyp configure && node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node ./src/lib/build.js && node-gyp configure && node-gyp build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the talib package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./src/lib/build.js && node-gyp configure && node-gyp build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs talib
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls talib
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /zenbot-master/npm-debug.log

I can't seem to figure out this error. Does it want me to make a build.js file?

bug help wanted

Most helpful comment

Having the same issue. Tried installing in bother docker and ubuntu.

All 10 comments

Having the same issue. Tried installing in bother docker and ubuntu.

On the command line type which make my guess is that you will get an error that make isn't found. This is what node-gyp appears to be calling at this point.

If this happen, you probably need to install the developer tools for your linux distro. Try using this command to do that on Ubuntu:

sudo apt-get install build-essential git

@cmroche You are correct. You will need make and g++ installed which is why sudo apt install build-essential is necessary. Probably need to put that you need them installed somewhere in the readme for future reference

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 'node-gyp configure && node-gyp build'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the forex.analytics package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp configure && node-gyp build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs forex.analytics npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls forex.analytics npm ERR! There is likely additional logging output above

root@vps113796: ~/zenbot# which make
/usr/bin/make
root@vps113796: ~/zenbot# which g++
/usr/bin/g++

@edgaru You will need to scroll up a fair bit in the output to get the error from the forex.analytics post install. I would also recommend opening a new issue since this one is about the pre-install build.

I installed this successfully on a windows machine a week ago just fine, and even installed a branch of this just fine. This however is not working as intended.

@edgaru Give read-write-execute permissions to those make and g++ folders. Then run sudo npm install --unsafe-perm

_Sent from my Motorola XT1706 using FastHub_

sudo apt-get install libkrb5-dev fixed it for me.

Check your version of node-js.

nodejs -v

If it is version 8 or higher then you have the wrong node-js version. That will cause the problem compiling ta-lib.

I fixed this error by running

sudo apt-get install nodejs-legacy

sudo npm install

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asafyish picture asafyish  路  3Comments

tabbek picture tabbek  路  3Comments

michaelr524 picture michaelr524  路  3Comments

ituhin picture ituhin  路  3Comments

bbusche picture bbusche  路  5Comments