When you globally add a package with yarn and it doesn’t show in the terminal.
Usually adding the path to your
.zshrc works, try
# nano ~/.bashrc # or # nano ~/.zshrc export PATH="$PATH:$(yarn global bin)"
If that doesn’t work you may need to set the yarn prefix.
Confirm your global bin path:
yarn global bin
set yarn prefix:
make sure your yarn prefix is the parent directory of your bin directory. You can confirm by running
yarn config get prefix
When I ran this it was undefined, so I set it:
yarn config set prefix ~/.yarn
Add the following to
export PATH="$PATH:`yarn global bin`"
Update all project dependencies to lates versions.
yarn upgrade --latest
yarn global add netlify-cli
yarn global upgrade
Couple of good one here from @beedesignllc
yarn create react-app my-app-name
☝️ downloads and runs latest
create-react-app works for other
similarly named pkgs
☝️ will run
node_modules/.bin/flow without you having to add it as a
The equivalent to
npm ci for yarn:
yarn install --frozen-lockfile