Rusty Locks Notes 2023

#TIL |  Avoid NPX install prompt

Using npx (Node Package Runner) in a GitHub Action can be difficult, because for security reasons the command requires to type YES at a prompt if the package is not present in the local project dependencies. This can be suppressed by providing --yes in version 7. But there is a workaround for v6 and above, by passing yes via environment variable: npm_config_yes=true npx ...

#NPX #GitHubActions


You can interact with this note (applause, criticism, whatever) by mention it in one of your posts or by replying to its syndication on Mastodon, which will be shown here as a Webmention .

In case your blog software can't send Webmentions, you can use this form:


No Webmentions yet...