Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build #73

Open
pensierinmusica opened this issue Mar 24, 2017 · 4 comments
Open

Does not build #73

pensierinmusica opened this issue Mar 24, 2017 · 4 comments

Comments

@pensierinmusica
Copy link

pensierinmusica commented Mar 24, 2017

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 [email protected] 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!

@pensierinmusica pensierinmusica changed the title Does not compile on Node v7.7.3 Does not compile Mar 24, 2017
@pensierinmusica pensierinmusica changed the title Does not compile Does not build Mar 24, 2017
@vabovyan
Copy link

vabovyan commented Apr 5, 2017

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

@pensierinmusica
Copy link
Author

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

@caiusCitiriga
Copy link

same problem here.

@viktorbk
Copy link

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

hexzhen3x7 pushed a commit to hexzhen3x7/WiringPi-Node-Original that referenced this issue Nov 30, 2024
Make external CC declaration possible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants