binding.target.mk:118: recept voor doel 'Release/obj.target/binding/src/binding.o' is mislukt
make: *** [Release/obj.target/binding/src/binding.o] Fout 1
make: Map '/home/pi/node_modules/speaker/build' wordt verlaten
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Linux 4.19.66-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/speaker
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! speaker@0.4.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.4.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2019-11-14T12_55_20_094Z-debug.log
I reinstalled rasbian and node already without succes.
You are installing in the wrong folder, you should be in your .node-red directory. So in a terminal run
cd .node-red
npm install node-red-contrib-speakerpi
If that doesn't work then post the full log here, including the install command.
Also read the readme for the log which tells you how to install and specifies other requirements it needs.
I think @zenofmud may be correct (not unusual), it may be a nodejs version 12 issue. I haven't got a system I can test that on at the moment. Probably best to post an issue on the node's github page. Perhaps someone who has a pi with node 12 could confirm this.