【发布时间】:2012-05-08 15:32:44
【问题描述】:
我在使用 Cloud9 IDE 运行文件时遇到了问题,这些文件在预安装了 Angstrom Linux 版本的 BeagleBone 上使用了bonescript。我在 OSX 10.7 上的 Chrome 18 中使用 Cloud9 http://beaglebone.local:3000。
当我运行Bonescriptblinkled.js 示例代码时,Cloud9 输出此错误:
Output
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/var/lib/cloud9'
at Function._resolveFilename (module.js:326:11)
at Function._load (module.js:271:25)
at Array.<anonymous> (module.js:430:10)
at EventEmitter._tickCallback (node.js:126:26)
如果我尝试按照in this StackOverflow question 的建议在运行配置中添加文件路径,我会在控制台中收到此错误(请注意红色):
[C9 Server Exception 2] undefined
此时 Cloud9 也停止响应,我必须重新加载页面以尝试进一步使用它。
如果我添加“blinkled.js”作为文件路径,我会收到此错误:
'inotify' not loaded
If desired, try installing it with:
curl http://npmjs.org/install.sh | bash
npm install inotify
'fibers' not loaded
If desired, try installing it with:
curl http://npmjs.org/install.sh | bash
npm install fibers
Delay operations loops will consume CPU cycles
Invoke using 'node-fibers' if node version < 0.5.2
不知道我应该放什么。
我已经用谷歌搜索这些各种错误大约 24 小时了。
这似乎是一个很棒的工具,如果我能让它工作的话。有什么想法吗?
更新 1
在意识到 opkg 未能加载所需的 inotify 和 fiber 包后,我手动安装了它们并再次尝试。现在我在命令行上得到这个错误:
# node blinkled.js
gpio: 38 already exported.
{ [Error: EBUSY, resource busy or locked] errno: 10, code: 'EBUSY', syscall: 'write' }
Unable to export gpio: 56
【问题讨论】:
标签: node.js beagleboard cloud9-ide