Javascript 不推荐使用警告:不使用回调调用异步函数是不推荐的,在哪里可以找到它?
因此,我不断收到这个错误,它将我重定向到节点_模块,我不确定我是否会在那里检查。。在node.js版本昨天更新之前,一切都很好 跟踪错误:Javascript 不推荐使用警告:不使用回调调用异步函数是不推荐的,在哪里可以找到它?,javascript,node.js,deprecation-warning,Javascript,Node.js,Deprecation Warning,因此,我不断收到这个错误,它将我重定向到节点_模块,我不确定我是否会在那里检查。。在node.js版本昨天更新之前,一切都很好 跟踪错误: node --trace-deprecation tradeBot.js (node:10062) DeprecationWarning: Calling an asynchronous function without callback is deprecated. at maybeCallback (fs.js:95:42
node --trace-deprecation tradeBot.js
(node:10062) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
at maybeCallback (fs.js:95:42)
at Object.fs.writeFile (fs.js:1191:14)
at FileStorage.saveFile.FileStorage.writeFile (/****/node_modules/file-manager/index.js:68:5)
at SteamUser._handlers.(anonymous function) (/****/node_modules/steam-user/components/logon.js:252:18)
at SteamUser._handleMessage (/****/node_modules/steam-user/components/messages.js:200:29)
at emitThree (events.js:116:13)
at CMClient.emit (events.js:194:7)
at CMClient._netMsgReceived (/****/node_modules/steam-client/lib/cm_client.js:278:8)
at CMClient.handlers.(anonymous function) (/****/node_modules/steam-client/lib/cm_client.js:386:8)
at CMClient._netMsgReceived (/****/node_modules/steam-client/lib/cm_client.js:260:24)
at emitOne (events.js:96:13)
at TCPConnection.emit (events.js:188:7)
at TCPConnection._readPacket (/****/node_modules/steam-client/lib/tcp_connection.js:73:7)
at emitNone (events.js:86:13)
at TCPConnection.emit (events.js:185:7)
at emitReadable_ (_stream_readable.js:432:10)
什么是
maybeCallback
?node\u模块/file manager/index.js第68行第5列
?报告一个bug,@Bergi its在那一行fs.writeFile(this.directory+'/'+文件名、内容、回调)代码>其他选项是什么?而不是writeFileOK,那么显然回调
是未定义的
,您需要检查调用堆栈中没有传递任何内容。我尝试使用nvm将节点版本降低到以前的版本(6.9.1),但现在连节点脚本都无法工作