You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After poking around a little in the source code I found that the getBinary method of SudoerLinux returns the result from stat in src/lib/utils.js which is an fs.Stats object. This object is then passed directly to child_process.spawn which would explain the [object part of the error output.
Changing the getBinary method to return the path to the binary instead of the stat object seemed to fix it for me.
Am I using the library wrong?
The text was updated successfully, but these errors were encountered:
When I run the example in the README (without await) I get the following output:
The code in its entirety is:
After poking around a little in the source code I found that the
getBinary
method ofSudoerLinux
returns the result fromstat
insrc/lib/utils.js
which is an fs.Stats object. This object is then passed directly tochild_process.spawn
which would explain the[object
part of the error output.Changing the
getBinary
method to return the path to the binary instead of the stat object seemed to fix it for me.Am I using the library wrong?
The text was updated successfully, but these errors were encountered: