I'm trying to build something using NodeJs on Intel Edison. I am using the plugin: blueimp/jQuery-File-Upload · GitHub and the NodeJS Server side part.
However, I keep getting
Error: ENOENT, no such file or directory '/home/root/db/node_modules/blueimp-file-upload-node/tmp/8fa2946958c04ad8cb6def7b1e9dab01'
at Object.fs.renameSync (fs.js:543:18)
at IncomingForm.<anonymous> (/home/root/db/node_modules/blueimp-file-upload-node/server.js:248:16)
at IncomingForm.EventEmitter.emit (events.js:98:17)
at WriteStream.<anonymous> (/home/root/db/node_modules/blueimp-file-upload-node/node_modules/formidable/lib/file.js:70:5)
at WriteStream.g (events.js:180:16)
at WriteStream.EventEmitter.emit (events.js:117:20)
at finishMaybe (_stream_writable.js:360:12)
at afterWrite (_stream_writable.js:280:5)
at onwrite (_stream_writable.js:270:7)
Whenever I try to upload something.The problem is that the file /home/root/db/node_modules/blueimp-file-upload-node/tmp/8fa2946958c04ad8cb6def7b1e9dab01 does indeed exist and I guess that I also have the permissions right in the folder.
I tried several things, but I am really stuck here, I cannot understand how can I get around this.
I don't think it's a Node/code problem, I have used this plugin + setup previously without any hassle.