javascript - Error: ESPIPE, write -


im using following code write file

fs.writefile('/dev/ttymxc1',"led 1 on",function(err){     if (err) return console.log(err); }); 

and error

{ [error: espipe, write] errno: -29, code: 'espipe' } 

i googled found nothing..

edit:

i think reason not work have use

fs.createwritestream(); 

instead of

fs.filewrite(); 

the solution using

fs.createwritestream() 

instead of

fs.filewrite(); 

Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -