You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
It would be nice to be able to use npkill without using the TUI as it is a potential extra step/click/key and a slight(:-P) performance impediment.
Solution
Add a command line argument that skips the UI, runs npkill deletion service, and displays results on command line.
Alternative
The best set of arguments I have found thus far is npx npkill -D -x -y -nu which deletes node_modules, skips hidden stuff, auto-confirms, doesn't check for updates, but still requires an exit of the TUI.
The text was updated successfully, but these errors were encountered:
I have a similar requirement, to have a proper non-interactive mode so i can call this as a CI script. The -D option suggests non-interactive but we also define the -y option. This is described as "Avoid displaying a warning when executing --delete-all" rather than acting as a non-interactive input mode.
A simple test is to pipe npkill through cat (npkill | cat) which confirms the command needs a TTY: "Oh no! Npkill does not support this terminal (TTY is required). This is a bug, which has to be fixed. Please try another command interpreter (for example, CMD in windows)".
It would be great to remove this condition and fix the bug as mentioned, (with -D and/or -y) to run non interactively. Thanks!
Problem
It would be nice to be able to use
npkill
without using the TUI as it is a potential extra step/click/key and a slight(:-P) performance impediment.Solution
Add a command line argument that skips the UI, runs
npkill
deletion service, and displays results on command line.Alternative
The best set of arguments I have found thus far is
npx npkill -D -x -y -nu
which deletesnode_modules
, skips hidden stuff, auto-confirms, doesn't check for updates, but still requires an exit of the TUI.The text was updated successfully, but these errors were encountered: