sudo not working.
mittalsuraj18 opened this issue · comments
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