fs.writeFileSync写不了文件
Error: ENOENT: no such file or directory, open '/tmp/导出结果_1632319793312.xlsx'
22:09:53.721 [本地调试] at Object.openSync (fs.js:462:3)
22:09:53.749 [本地调试] at Object.writeFileSync (fs.js:1384:35)
1***@qq.com
- 发布:2021-09-22 22:20
- 更新:2021-09-23 14:41
- 阅读:810
1 个回复
DCloud_UNI_CHB
你本地没有
/tmp/
目录,所以本地运行失败。临时解决方案:uniCloud.uploadFile中直接上传buffer。