pankod / superplate

A well-structured production-ready frontend boilerplate with Typescript, React Testing Library, styled-component, React Query, .env, Axios, Bundle Analyzer, Prettier and 30+ plugins. superplate creates projects for React.js, Next.js, and refine. https://pankod.github.io/superplate/

Home Page:https://pankod.github.io/superplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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