Automatically accept installing NPX package [duplicate]

npx has a --yes flag you can use to bypass the prompt:

npx --yes some-npm-package

This is undocumented if you run npx --help, but the documentation for this flag is hidden in the command’s “description” on the NPM website.

There is also a --no flag available if you need to reject the prompt instead.

Leave a Comment

techhipbettruvabetnorabahisbahis forumu