Skip to content

sudo not working. #308

@mittalsuraj18

Description

@mittalsuraj18

When i create a custom plugin and add sudo commands in the postinstall script of package.json, the prompt does not work.

Example,
Create a custom plugin and add the following inside _package.json

"scripts":{
    "postinstall": "bash postinstall.sh"
}

In the postinstall.sh file, add the following

#!/bin/bash

echo "hello"|sudo tee

Expected behavior should be prompting for sudo password.
Actual behavior is that it gets struck on the terminal at the following without prompting for password

⠧ Installing packages with npm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions