oransel/node-talib

Installation error on Ubuntu 16.04 LTS

adeelhashmi opened this issue · 1 comments

Hi

I am facing the below error messages when installing talib on Ubuntu 16.04 LTS. I have done the step to ensure g++, make and build essentials are available. I have manually created the directory that the script complains about '/home/adeel/Downloads/node_modules/talib/build'. However, after the script exits again in error, I find this directory has been deleted in the process. Please help me out.

Thanks

Regards,

Adeel

temp/csr/ta_ULTOSC.o ../../../../../temp/csr/ta_VAR.o ../../../../../temp/csr/ta_WCLPRICE.o ../../../../../temp/csr/ta_WILLR.o ../../../../../temp/csr/ta_WMA.o
make[1]: Leaving directory '/home/adeel/Downloads/node_modules/talib/src/lib/make/csr/linux/g++/ta_libc'

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/adeel/Downloads/node_modules/talib/build'
gyp ERR! System Linux 4.4.0-112-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/adeel/Downloads/node_modules/talib
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/adeel/Downloads/package.json'
npm WARN Downloads No description
npm WARN Downloads No repository field.
npm WARN Downloads No README data
npm WARN Downloads No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! talib@1.0.4 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.4 install 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/adeel/.npm/_logs/2018-02-18T12_05_20_473Z-debug.log

Problem was with NPM. Need to use sudo npm install talib --unsafe-perm=true --allow-root