TArvela
TArvela

Reputation: 135

Package installation impossible in node

I am trying to setup a raspberry pi 3. I want to install and run a node code, but I have a problem while installing packages with npm.

I tried several times with several versions of node (including the armhf latest and an older one), but I always get the following error (while installing groove [npm install groove]

[email protected] install /home/pi/node_modules/groove  node-gyp rebuild

make: Entering directory '/home/pi/node_modules/groove/build'   CXX(target) Release/obj.target/groove/src/groove.o In file included from ../src/groove.cc:4:0: ../src/file.h:6:27: fatal error: groove/groove.h: Aucun fichier ou dossier de ce type  #include <groove/groove.h>
                           ^ compilation terminated. groove.target.mk:95: recipe for target 'Release/obj.target/groove/src/groove.o' failed make: *** [Release/obj.target/groove/src/groove.o] Error 1 make: Leaving directory '/home/pi/node_modules/groove/build' gyp ERR! build error  gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack   at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack     at emitTwo (events.js:87:13) gyp ERR! stack     at ChildProcess.emit (events.js:172:7) gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 4.4.50-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/node_modules/groove gyp ERR! node -v v4.2.1 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok  npm ERR! Linux
4.4.50-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "groove" npm ERR! node v4.2.1 npm ERR! npm  v2.14.7 npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR!  npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the groove package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR!     node-gyp rebuild npm ERR! You can get their info via: npm ERR!     npm owner ls groove npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR!     /home/pi/npm-debug.log

The npm-debug.log is the following: http://pastebin.com/M5jRwiFX

Thank you for your help

Upvotes: 1

Views: 248

Answers (1)

You are missing groove/groove.h Try installing libgroove-dev

Upvotes: 2

Related Questions