os.tmpDir() is deprecated - node and formidable

后端 未结 1 2042
天命终不由人
天命终不由人 2021-02-05 17:04

I use node version 7.2.0 and formidable version 1.0.17 for file upload. After updating to the node version 7.2.0 I now get the following error when uploading files:

相关标签:
1条回答
  • 2021-02-05 17:54

    @idbehold, it worked like a charm.

    It's not really an error, it's a deprecation warning. You can ask the formidable maintainers to fix it or you could just put something like the following at the top of your file:

    var os = require('os');

    os.tmpDir = os.tmpdir;

    0 讨论(0)
提交回复
热议问题