yarn uninstall package code example
Example 1: how to uninstall a package with yarn
yarn remove <package_name>
Example 2: yarn remove package
yarn remove `package`
Example 3: yarn remove
yarn remove <package name>
Example 4: install npm package globally
npm install package-name -g
Example 5: install an npm package
npm install package-name
To save as a dependency:
npm install package-name --save
Example 6: yarn uninstall
just do: yarn remove [package-name]