Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/446.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 需要帮助调试无效的java node.js回调错误消息_Javascript_Node.js_Ubuntu_Npm - Fatal编程技术网

Javascript 需要帮助调试无效的java node.js回调错误消息

Javascript 需要帮助调试无效的java node.js回调错误消息,javascript,node.js,ubuntu,npm,Javascript,Node.js,Ubuntu,Npm,需要一些帮助来调试下面的代码。我将error消息放在第一位,然后是代码片段,然后是它的运行 syedk@ubuntu:~$node-v v12.13.1 syedk@ubuntu:~$npm-v 6.12.1 syedk@ubuntu:~ 错误消息 /var/www/html/code_drop/website/node_modules/formidable/lib/file.js:79:5) at Object.onceWrapper (events.js:299:28) at WriteSt

需要一些帮助来调试下面的代码。我将error消息放在第一位,然后是代码片段,然后是它的运行

syedk@ubuntu:~$node-v v12.13.1 syedk@ubuntu:~$npm-v 6.12.1 syedk@ubuntu:~

错误消息

/var/www/html/code_drop/website/node_modules/formidable/lib/file.js:79:5)
at Object.onceWrapper (events.js:299:28)
at WriteStream.emit (events.js:210:5)
at finishMaybe (_stream_writable.js:656:14)
at _stream_writable.js:634:5
at WriteStream._final (internal/fs/streams.js:285:3)
at callFinal (_stream_writable.js:627:10)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
代码:“错误\无效\回调”


来自file.js的代码片段

File.prototype.end = function(cb) {
var self = this;
if (self.hash) {
self.hash =     self.hash.digest('hex');
}
this._writeStream.end(function()     {
self.emit('end');
cb();
这是JavaScript(指定为的语言)。它不是Java。与Java无关。这就是为什么“官方”名称是ECMAScript(而不是JavaScript)。它不是Java。与Java无关。这就是为什么“官方”名称是ECMAScript(而不是JavaScript)。