在学习NodeJs过程中,本人是按照《Node入门》来学习的。一开始前面都正常运行,但在最后阶段,学习本地图片上传的时候,显示如下错误信息,请大虾们赐教! 本人使用的是Node.js 0.10.5的版本。谢谢!
fs.js:543
return binding.rename(pathModule._makeLong(oldPath),
^
Error: ENOENT, no such file or directory ‘C:\Users\ADMINI~1\AppData\Local\Temp\0
4269fe537101b9e3a9189349ccac5e6’
at Object.fs.renameSync (fs.js:543:18)
at C:\inetpub\wwwroot\node\requestHandlers\requestHandlers.js:34:12
at IncomingForm.<anonymous> (C:\inetpub\wwwroot\node\node_modules\formidable
\lib\incoming_form.js:92:9)
at IncomingForm.EventEmitter.emit (events.js:92:17)
at IncomingForm._maybeEnd (C:\inetpub\wwwroot\node\node_modules\formidable\l
ib\incoming_form.js:533:8)
at C:\inetpub\wwwroot\node\node_modules\formidable\lib\incoming_form.js:211:
12
at WriteStream.<anonymous> (C:\inetpub\wwwroot\node\node_modules\formidable
lib\file.js:70:5)
at WriteStream.g (events.js:175:14)
at WriteStream.EventEmitter.emit (events.js:117:20)
at finishMaybe (_stream_writable.js:344:12)