I followed the install procedure of opentrade but hit a few errors..
pi@raspberrypi:~/opentrade $ sudo npm install sqlite3
npm WARN package.json
string_decoder@1.0.3 string_decoder is also the name of a node core module.
/
>
sqlite3@4.0.0 install /home/pi/opentrade/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build
/usr/bin/env: ‘node’: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR!
sqlite3@4.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the
sqlite3@4.0.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.9.41-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "sqlite3"
npm ERR! cwd /home/pi/opentrade
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/opentrade/npm-debug.log
npm ERR! not ok code 0
and then struggled to make DIR...