0

你好,如果你能帮助我在树莓派上构建telldus-core-js,我会很高兴。

我收到以下错误,无法弄清楚我做错了什么。

我要安装的模块是这个https://github.com/evilmachina/telldus-core-js和 npm install telldus-core-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
4

1 回答 1

0

Telldus-core-js 不适用于 0.10.x 版本的 Node.js(请参阅此问题:https ://github.com/evilmachina/telldus-core-js/issues/6 )。使用问题中提到的node-telldus fork而不是telldus-core-js。

于 2014-02-10T19:40:39.350 回答