var zip = new AdmZip();
zip.addLocalFolder(dic);
zip.writeZip(zip);
压缩文件夹时报错,提示
TypeError: entry.rawEntryName.copy is not a function
at d:\WebstormProjects\testgitnode\node_modules\@zwg\adm-zip\zipFile.js:273:24
at Array.forEach ()
at Object.compressToBuffer (d:\WebstormProjects\testgitnode\node_modules\@zwg\adm-zip\zipFile.js:264:14)
at Object.writeZip (d:\WebstormProjects\testgitnode\node_modules\@zwg\adm-zip\adm-zip.js:623:23)
at Object. (d:\WebstormProjects\testgitnode\ttt.js:79:5)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
var zip = new AdmZip(); zip.addLocalFolder(dic); zip.writeZip(zip);
压缩文件夹时报错,提示 TypeError: entry.rawEntryName.copy is not a function at d:\WebstormProjects\testgitnode\node_modules\@zwg\adm-zip\zipFile.js:273:24 at Array.forEach ()
at Object.compressToBuffer (d:\WebstormProjects\testgitnode\node_modules\@zwg\adm-zip\zipFile.js:264:14)
at Object.writeZip (d:\WebstormProjects\testgitnode\node_modules\@zwg\adm-zip\adm-zip.js:623:23)
at Object. (d:\WebstormProjects\testgitnode\ttt.js:79:5)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)