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

sudo not working. #308

Open
mittalsuraj18 opened this issue Jun 17, 2022 · 0 comments
Open

sudo not working. #308

mittalsuraj18 opened this issue Jun 17, 2022 · 0 comments

Comments

@mittalsuraj18
Copy link

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
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