DeprecationWarning:不推荐在没有回调的情况下调用异步函数,在哪里可以找到它?

时间:2017-01-04 10:58:42

标签: javascript node.js deprecation-warning

所以我不断收到这个错误,将我重定向到node_modules,我不确定我是否会检查那里..在昨天node.js版本更新之前,一切都很好。

跟踪错误:

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)

0 个答案:

没有答案