OneCompiler

How to uninstall a package using yarn?

I installed a package using yarn but I found that I haven't used it anywhere inside the project, how can I uninstall it?

1 Answer

5 years ago by
yarn remove [package-name]

Running this command will remove the package from your direct dependencies updating your package.json and yarn.lock files in the process

5 years ago by Divya