我正在尝试在 Intel Edison 上使用 NodeJs 构建一些东西。我正在使用插件:https ://github.com/blueimp/jQuery-File-Upload和 NodeJS 服务器端部分。
但是,我不断得到
fs.js:543
return binding.rename(pathModule._makeLong(oldPath),
^
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 /home/root/db/node_modules/blueimp-file-upload-node/node_modules/formidable/lib/incoming_form.js:228:12
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)
每当我尝试上传某些东西时。问题是该文件/home/root/db/node_modules/blueimp-file-upload-node/tmp/8fa2946958c04ad8cb6def7b1e9dab01
确实存在,我想我也拥有该文件夹中的权限。
我尝试了几件事,但我真的被困在这里,我无法理解如何解决这个问题。