WiringPi / WiringPi-Node

Node.js bindings to wiringPi
333 stars 94 forks source link

Does not build #73

Open pensierinmusica opened 7 years ago

pensierinmusica commented 7 years ago

Trying to install wiring-pi on a Mac laptop with Node v7.7.3, I get:

FATAL: Making libWiringPi failed.

And in npm-debug.log:

441 error Failed at the wiring-pi@2.2.1 install script '/bin/bash ./install.sh'.

Even if eventually my code will run on a Raspberry Pie I'd still like to be able to write it on my laptop. I tried to install GpIO and it doesn't seem to give any problem.

Any idea how to fix this? Thx!

vabovyan commented 7 years ago

sudo apt-get install git-core will fix it.

pensierinmusica commented 7 years ago

apt-get does not exist on Mac, I think it's for Linux. Maybe with homebrew?

caiusCitiriga commented 6 years ago

same problem here.

viktorbk commented 5 years ago

The problem here is that V8 has removed ForceSet method in the V8 version that Node 10 uses. Solution is to install older version of nodejs. Easiest is to use NodeVersionManager nvm. curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash source ~/.bashrc nvm install 8 npm install npm@latest -g

then you can do

npm remove wiring-pi npm install wiring-pi