nvbn / thefuck

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

Suggest yarn add x for yarn install x #648

Open OmgImAlexis opened 7 years ago

OmgImAlexis commented 7 years ago

Yarn has changed from using yarn install PACKAGE_NAME to yarn add PACKAGE_NAME but when running fuck I get yarn install suggested.

➜  Twistly git:(master) ✗ yarn install ava
yarn install v0.23.4
error `install` has been replaced with `add` to add new dependencies. Run "yarn add ava" instead.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
➜  Twistly git:(master) ✗ fuck            
yarn install [enter/↑/↓/ctrl+c] 
Aborted
mattgrande commented 7 years ago

I'd also like to see yarn rm suggest yarn remove, personally.

awonnacott commented 7 years ago

and perhaps yarn update suggest yarn upgrade