0

我一直在尝试在我的英特尔 Edison 上运行我的 hello-worlds.js 文件(如下所示):

var five = require("johnny-five");
var Edison = require("galileo-io");
var board = new five.Board({
io: new Edison()
});


board.on("ready", function() {
 var led = new five.Led(13);
 led.blink(500);
});

我已经安装了 Node.js,我还使用了 npm install galileo-io johnny-5 并将文件下载到我的文件夹 my-robotics-project 的文件目录中。当我使用节点 hello-worlds.js 执行时,出现以下错误:

 This OS image is no longer supported.
 Please upgrade to IoTkit Image with libmraa0 support

 c:\User\Mohamed\my-robotics-project\node_modules\galileo\lib\galileo.js:66
 if <Pin.IO.getPlatformType<> === 2> {

 TypeError: Cannot read property 'getPlatformType' of undefined
 at Object.<anonymous> <c:\User\Mohamed\my-robotics-         
 project\node_modules\galileo\lib\galileo.js:66:11>
 at Module._compile <module.js:435:26>
 at Object.Module.extensions..js <module.js:442:10>
 at Module.load <module.js:356:32>
 at function.Module._load <module.js:311:12>
 at Module.require <module.js:366:17>
 at require <module.js:385:17>
 at Object.<anonymous> <c:\User\Mohamed\my-robotics-project\hello-  
 worlds.js:2:14>
 at Module._compile <module.js:435:26>
 at Object.Module._extensions..js <module.js:442:10>
4

0 回答 0