fs.js:143
throw new ERR_INVALID_CALLBACK(cb);
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
at makeCallback (fs.js:143:11)
at Object.unlink (fs.js:1024:14)
at D:\node\littleAlbum\controller\router.js:88:16
at IncomingForm.<anonymous> (D:\node\littleAlbum\node_modules\formidable\lib\incoming_form.js:107:9)
at IncomingForm.emit (events.js:210:5)
at IncomingForm._maybeEnd (D:\node\littleAlbum\node_modules\formidable\lib\incoming_form.js:557:8)
at D:\node\littleAlbum\node_modules\formidable\lib\incoming_form.js:238:12
at WriteStream.<anonymous> (D:\node\littleAlbum\node_modules\formidable\lib\file.js:79:5)
at Object.onceWrapper (events.js:299:28)
at WriteStream.emit (events.js:210:5) {
code: 'ERR_INVALID_CALLBACK'
}
Reason:
Solution:
Similar Posts:
- [Node.js] fs.renameSync() Error: Error: ENOENT: no such file or directory, rename…
- How to Solve error: command SH – C node install.js when installing electron
- How to Solve Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor’
- [Solved] NPM run dev error [npm ERR! code ELIFECYCLE]
- [Solved] Error reporting of NPM packaged electron app
- Solution to the failure of node rdkafka in docker build
- Mac download wepy error reporting solution
- Local workspace file (‘angular.json’) could not be found.
- How to Solve ReferenceError: internalBinding is not defined