【发布时间】:2022-02-19 04:58:01
【问题描述】:
我需要帮助。我正在尝试使用 extract-zip 解压缩带角度的 zip 文件。
但我收到以下错误:
./node_modules/extract-zip/index.js:9:4-17 - 错误:找不到模块:错误:无法解析 'D:\TONWEYA\ig-recovery\node_modules\extract 中的 'fs' -压缩 '
./node_modules/fd-slicer/index.js:1:9-22 - 错误:找不到模块:错误:无法解析 'D:\TONWEYA\ig-recovery\node_modules\fd 中的 'fs' -切片器'
./node_modules/yauzl/index.js:1:9-22 - 错误:找不到模块:错误:无法解析 'D:\TONWEYA\ig-recovery\node_modules\yauzl' 中的 'fs'
./node_modules/zlib/lib/zlib.js:1:0-43 - 错误:找不到模块:错误:无法解析 'D:\TONWEYA\ig-recovery\node_modules 中的 './zlib_bindings' \zl ib\lib'
这是我的代码:
import extractZip from 'extract-zip';
async onFileSelected(event: any): Promise<void> {
this.fichier = event.target.files[0];
extractZip("D:\\TONWEYA\\unzip\\demo.zip", {dir: "D:\\TONWEYA\\unzip"});
}
我真的在等待你的帮助。我正在使用角度 13。
【问题讨论】:
标签: angular typescript compression unzip