Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "CommandLine" property will cause error while parsing CSV #3

Open
kctang opened this issue Oct 26, 2016 · 0 comments
Open

Getting "CommandLine" property will cause error while parsing CSV #3

kctang opened this issue Oct 26, 2016 · 0 comments

Comments

@kctang
Copy link

kctang commented Oct 26, 2016

This looks like a bug. It is a valid property because stdOut does return expected result.

    wmic.process.get({
        get: ['processId', 'executablePath', 'CommandLine']
    }, function (err, processes, stdOut) {
        if (err) {
            console.error(err);
        }
        // ...
    });

Error: Number of columns on line 5 does not match header
    at Error (native)
    at Parser.__push (xxx\node_modules\csv-parse\lib\index.js:222:13)
    at Parser.__write (xxx\node_modules\csv-parse\lib\index.js:416:14)
    at Parser._transform (xxx\node_modules\csv-parse\lib\index.js:172:10)
    at Parser.Transform._read (_stream_transform.js:167:10)
    at Parser.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Parser.Writable.write (_stream_writable.js:220:11)
    at xxx\node_modules\csv-parse\lib\index.js:46:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant