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

npm install error #425

Closed
papacasper opened this issue Jul 30, 2017 · 10 comments
Closed

npm install error #425

papacasper opened this issue Jul 30, 2017 · 10 comments

Comments

@papacasper
Copy link

zenbot-master# npm install
> talib@1.0.3 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 zenbot4@4.0.5 No repository field.
npm WARN zenbot4@4.0.5 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! talib@1.0.3 install: `node ./src/lib/build.js && node-gyp configure && node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the talib@1.0.3 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?

@evilc0des
Copy link

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

@cmroche
Copy link
Contributor

cmroche commented Jul 31, 2017

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

@papacasper
Copy link
Author

@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

@edgaru
Copy link

edgaru commented Jul 31, 2017

npm ERR! forex.analytics@0.0.14 postinstall: `node-gyp configure && node-gyp build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the forex.analytics@0.0.14 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++

@cmroche
Copy link
Contributor

cmroche commented Jul 31, 2017

@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.

@zachtdavis
Copy link

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.

@pushkarnagle
Copy link

@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

@zazant
Copy link

zazant commented Aug 8, 2017

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

@CryptoMF
Copy link

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.

@hquan212
Copy link

I fixed this error by running

sudo apt-get install nodejs-legacy

sudo npm install

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

No branches or pull requests

10 participants