【问题标题】:Can't install npm module telldus-core-js无法安装 npm 模块telldus-core-js
【发布时间】:2013-08-20 20:07:30
【问题描述】:

你好,如果你能帮助我在树莓派上构建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

【问题讨论】:

  • 看起来telldus-core-js 使用了本机扩展,并且在您的机器上构建时遇到问题。尝试在他们的文档/论坛中搜索兼容的编译器版本/架构,看看是否有人提到任何具体内容。

标签: node.js npm node-gyp


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-11-19
    • 2015-08-23
    • 2021-10-06
    • 2015-11-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多