@Gleno0h said in Can't start pimatic (node-pre-gyp install --fallback-to-build):
@X-Ray
"Removing the old NodeJS (v0.10) installation
Check where NodeJS is installed:
whereis node
This should output the path of node (for example /usr/local/bin/node).
Remove all binaries and the node_modules folder:
sudo rm -r /usr/local/bin/node /usr/local/bin/npm /usr/local/lib/node_modules
Check that NodeJS is gone:
node --version
It should output command not found."
Why did you have a higher node in the first place?
Removed Node completly and retried with the howto of pimatic… Same problem…
@leader21 said in Can't start pimatic (node-pre-gyp install --fallback-to-build):
strange. try to install sqlite manually
cd /home/pi/pimatic-app/
sudo npm install sqlite3@3.1.3 --unsafe-perm
Get this error:
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pimatic-app/node_modules/sqlite3/lib/binding/node-v46-linux-arm/node_sqlite3.node --module_name=node_sqlite3 --module_path=/home/pi/pimatic-app/node_modules/sqlite3/lib/binding/node-v46-linux-arm' (1)
npm ERR! Linux 4.1.19+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sqlite3@3.1.3" "--unsafe-perm"
npm ERR! node v4.4.5
npm ERR! npm v2.15.5
npm ERR! code ELIFECYCLE
npm ERR! sqlite3@3.1.3 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.3 install script 'node-pre-gyp install --fallback-to-build'.
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 information on how to open an issue for this project with:
npm ERR! npm bugs sqlite3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
Upper is this error:
21:11:48.761 [pimatic, ppm] info: ../node_modules/nan/nan.h:41:3: error: #error This version of node/NAN/v8 requires a C++11 compiler