logoalt Hacker News

mrkloltoday at 8:58 AM1 replyview on HN

Is there any reason to keep using postinstall scripts allowed instead of asking e.g. the user? Are they even needed in most cases?


Replies

Cthulhu_today at 10:44 AM

If you ask the user "should I run this script" after installing, they will just hit yes every time. But also, a lot (I'm confident it's "most") of NPM install operations are done on a CI server, which need to run without human interaction.