你知道,如果你能帮助我在树莓派上建立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
答案 0 :(得分:0)
Telldus-core-js不适用于0.10.x版本的Node.js(请参阅此问题:https://github.com/evilmachina/telldus-core-js/issues/6)。使用问题中提到的node-telldus fork而不是telldus-core-js。