superplate icon indicating copy to clipboard operation
superplate copied to clipboard

sudo not working.

Open mittalsuraj18 opened this issue 3 years ago • 0 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

mittalsuraj18 avatar Jun 17 '22 12:06 mittalsuraj18