2017-03-04 1 views
1

라즈베리 파이를 설치하려고합니다. 3. 노드 코드를 설치하고 실행하려고하지만, npm으로 패키지를 설치하는 동안 문제가 있습니다.노드에 패키지 설치가 불가능합니다.

I합니다 (armhf 최신 및 이전 포함) 노드의 여러 버전을 여러 번 시도했지만 홈을 설치하는 동안 나는 항상 [NPM 홈을 설치 (다음과 같은 오류를 얻는 npm-

[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 

debug.log를은 다음과 같다 : http://pastebin.com/M5jRwiFX

당신은 설치하십시오 groove/groove.h 누락

+0

권한을 부여하려고 시도 했습니까? ('sudo') –

+0

권한을 사용하면 약간 다른 오류가 반환됩니다 : http://pastebin.com/3h1uVuwE – Barnabe

+1

libgroove 라이브러리를 먼저 설치 했습니까? – Molda

답변

2

도와 주셔서 감사 libgroove-DEV

+0

https://launchpad.net/ubuntu/yakkety/armhf/libgroove-dev/4.3.0-2build1 'wget https://launchpad.net/ubuntu/yakkety를 실행하여 여기에서 설치를 시도했습니다./armhf/libgroove-DEV/4.3.0-2build1' 및 'sudo는 때 dpkg -i libgroove-dev_4.3.0-2_armhf.deb' 하지만이 의존성 문제 (sudo는이 -f는 아무튼 설치 apt-get을 ' 이 문제를 해결하기 위해서) – Barnabe

+1

다음을 시도해 보라 :'# apt-add-repository ppa : andrewrk/libgroove # apt-get update # apt-get install libgroove-dev' –

+0

'dpkg : de problèmes de dépendances empêchent la configuration de libgroove- dev : armhf : libgroo ve-dev : armhf dépend de libgroove4 (= 4.3.0-2); cependant : Le paquet libgroove4 : armhf n'est pas encore configuré. 때 dpkg : erreur 드 TRAITEMENT 뒤 PAQUET libgroove-DEV : armhf이 (--install) : 가 dépendances을 드 problèmes - laissé 비 구성 데스 erreurs ONT 죽어 야지 rencontrées 펜던트 난 실행 : libgroove-DEV : ' armhf이 글은 다음의 프랑스어지만 libgroove-dev : armhf는 libgroove4에 의존하지만 이전에는 configurated가 없다고합니다 ... 나는 armhf 버전 만 가지고 있어야한다고 생각했습니다 – Barnabe

관련 문제