Skip to content

The "file" argument must be of type string. Received type object #69

Description

    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 🐛

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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