sudoer.spawn(
'resolvconf -u'
)
.catch(err => {
console.error(err);
});
Throws this error
TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
at validateString (internal/validators.js:112:11)
at normalizeSpawnArguments (child_process.js:407:3)
at Object.spawn (child_process.js:543:16)
Using
sudoer.spawn(
'resolvconf', ['-u']
)
.catch(err => {
console.error(err);
});
does not solve the problem 🐛