@Gleno0h is already the newest version
build-essential is already the newest version.
git is already the newest version.
Can't start pimatic (node-pre-gyp install --fallback-to-build)
@Gleno0h is already the newest version
build-essential is already the newest version.
git is already the newest version.
@X-Ray said in Can't start pimatic (node-pre-gyp install --fallback-to-build):
@Gleno0h is already the newest version
build-essential is already the newest version. git is already the newest version.
Please post output of
sudo /usr/bin/env node --version
4.6.1?
Try downgrading to node 4.4.5.
@Gleno0h said in Can't start pimatic (node-pre-gyp install --fallback-to-build):
@X-Ray said in Can't start pimatic (node-pre-gyp install --fallback-to-build):
@Gleno0h is already the newest version
build-essential is already the newest version. git is already the newest version.
Please post output of
sudo /usr/bin/env node --version
4.6.1?
Try downgrading to node 4.4.5.
yep, is 4.6.1
v4.6.1
How can i downgrade unproblematically?
with this?
sudo npm cache clean -f
sudo npm install -g n
sudo n 4.4.5
"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?
strange. try to install sqlite manually
cd /home/pi/pimatic-app/
sudo npm install sqlite3@3.1.3 --unsafe-perm
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
@Gleno0h said in Can't start pimatic (node-pre-gyp install --fallback-to-build):
"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
@X-Ray please, output of
gcc --version
Im still thinking that your problem is gcc. If wrong, anyone, correct me.
@Gleno0h
I think too. Version was 4.6. I read something about that 4.6 doesn’t supports C++11.
Tried now apt-get install gcc-4.8
and sudo ln -s -f /usr/bin/gcc-4.8 /usr/bin/gcc
i will answer tomorrow about the results.
@X-Ray indeed.
@X-Ray said in Can't start pimatic (node-pre-gyp install --fallback-to-build):
@Gleno0h
I think too. Version was 4.6. I read something about that 4.6 doesn’t supports C++11.
Tried nowapt-get install gcc-4.8
andsudo ln -s -F /usr/bin/gcc-4.8 /usr/bin/gcc
i will answer tomorrow about the results.
Yep, gcc and g++ were the problem.
I did the Same with g++
apt-get install g++-4.8
sudo ln -s -f /usr/bin/g++-4.8/usr/bin/g++
and after that a reboot
Now it works!
Thanks a lot
@X-Ray good to hear. Enjoy