Skip to content

TypeError: options argument must be an object #5

@DevinCarl

Description

@DevinCarl

var unoconv = require('unoconv');
unoconv.convert('1.docx', 'pdf', function (err, result) {
// result is returned as a Buffer
fs.writeFile('converted.pdf', result);
});

below error:

child_process.js:961
throw new TypeError('options argument must be an object');
^
TypeError: options argument must be an object
at normalizeSpawnArguments (child_process.js:961:11)
at Object.exports.spawn (child_process.js:984:38)
at Object.unoconv.convert (E:\Projects\node_modules\unoconv\index.js:46:26)
at Object. (E:\Projects\01_Tmp\hwcloud\test.js:15:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions