在 electron 中使用,发现没法用,调试 fs.promises 是 undefined,但 fs api 文档中是有这个方法的。
是不是不支持这种方式的调用?
在 electron 中使用,发现没法用,调试 fs.promises 是 undefined,但 fs api 文档中是有这个方法的。
是不是不支持这种方式的调用?
1
joe237 Apr 29, 2020
确认一下 electron 的版本?看它集成的 node 版本是否与你所看的文档版本一致?
|