2013-08-20 228 views
0

你好,我可以幫助我在樹莓派上構建telldus-core-js。無法安裝npm模塊telldus-core-js

我得到下面的錯誤,無法弄清楚我做錯了什麼。

我試圖安裝該模塊是本https://github.com/evilmachina/telldus-core-js與NPM安裝telldus核-JS -g

>make: Entering directory /home/pi/piHomeAuto/node_modules/telldus-core-js/build' 
> CXX(target) Release/obj.target/telldus-core-js/telldus.o 
>../telldus.cc:231:34: error: eio_req was not declared in this scope 
>../telldus.cc:231:43: error: req was not declared in this scope 
>../telldus.cc:231:48: error: expected , or ; before { token 
>../telldus.cc:390:1: error: expected } at end of input 
>make: *** [Release/obj.target/telldus-core-js/telldus.o] Fel 1 
>make: Leaving directory /home/pi/piHomeAuto/node_modules/telldus-core-js/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:267:23) 
>gyp ERR! stack  at ChildProcess.EventEmitter.emit (events.js:100:17) 
>gyp ERR! stack  at Process.ChildProcess._handle.onexit   (child_process.js:789:12) 
>gyp ERR! System Linux 3.6.11+ 
>gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-    gyp/bin/node->gyp.js" "configure" "build" 
>gyp ERR! cwd /home/pi/piHomeAuto/node_modules/telldus-core-js 
>gyp ERR! node -v v0.11.2 
>gyp ERR! node-gyp -v v0.9.5 
>gyp ERR! not ok 
>npm ERR! weird error 1 
+2

它會出現telldus-core-js使用本機擴展,並且在您的機器上構建時遇到問題。嘗試搜索兼容的編譯器版本/體系結構的文檔/論壇,並查看是否有人提到任何特定的東西。 – ChrisCM

回答