chuanyi / msexcel-builder

A simple and fast library to create MS Office Excel(>2007) xlsx files.
MIT License
184 stars 130 forks source link

not work? #2

Open ifanfan opened 11 years ago

ifanfan commented 11 years ago

我运行demo时报错: fs.js:427 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);

Error: ENOENT, no such file or directory 'D:\3328457\xl_rels\workbook.xml.rels'

chuanyi commented 11 years ago

请问你的nodejs是哪个版本,示例代码能贴一下? 应该是传入参数错误

Oleg2tor commented 11 years ago

Same error:

Error: ENOENT, no such file or directory 'C:\pathtoapp\7397885\xl_rels\workbook.xml.rels' at Object.fs.openSync (fs.js:338:18) at Object.fs.writeFileSync (fs.js:756:15) at Workbook.save (C:\pathtoapp\node_modules\msexcel-builder\lib\msexcel-builder.js:772:8) at Workbook.__bind as save apathtoapp\app.js:793:11 at callbacks (C:\pathtoapp\node_modules\express\lib\router\index.js:161:37) at Promise. (pathtoapp\app.js:125:5) at Promise.onResolve (C:\pathtoapp\node_modules\mongoose\node_modules\mpromise\lib\promise.js:162:8) at Promise.EventEmitter.emit (events.js:96:17) at Promise.emit (C:\pathtoapp\node_modules\mongoose\node_modules\mpromise\lib\promise.js:79:38)

Oleg2tor commented 11 years ago

Problem is missing paths ./lib/tmpl/xl/_rels and ./lib/tmpl/xl/worksheets when installing via npm.