nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
83.75k stars 3.41k forks source link

update npm missing script matchers #1367

Open songz opened 1 year ago

songz commented 1 year ago

Closes https://github.com/nvbn/thefuck/issues/1320

Npm error logs has changed:

Screenshot 2023-03-28 at 9 33 35 AM

Without this change, fuck will give either an irrelevant script or no fucks given message.

With this change, an appropriate suggestion will be given: Screenshot 2023-03-28 at 9 34 57 AM

BuZZ-T commented 10 months ago

It's lowercase for me:

npm ERR! missing script: lit
npm ERR! 
npm ERR! Did you mean this?
npm ERR!     lint

(Ubuntu 20.04) If it's different for other environments, both lower- and uppercase version should be allowed