rwaldron / galileo-io

Intel Galileo & Intel Edison IO Plugin for Johnny-Five
http://johnny-five.io
MIT License
101 stars 26 forks source link

fs: missing callback Error: ENODEV, write #13

Closed qwertypants closed 9 years ago

qwertypants commented 10 years ago

After running some basic code, I get the following error: fs: missing callback Error: ENODEV, write

I think it is with the latest version of galileo-io (that I installed today). I tested the following snippet in a different directory with an older version of the library and it works as expected.

To replicate, create a new directory on the Galileo. Go into this new directory and run npm install galileo-io. Then create a new file called test.js with the following code:

var Galileo = require ('galileo-io');
var board = new Galileo();

board.on('ready', function() {
  console.log('Hello Galileo!');
});

Save and run the file. The output is as follows:

Hello Galileo!
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
fs: missing callback Error: ENODEV, write
frantello commented 9 years ago

I get same error when using node version 0.10.28. And galileo-io sice 0.1.0 to 0.2.0.