Ensure Shell Can Find Global npm Binaries
When you install a package globablly either with yarn (or npm)
It places the binaries for that package in the bin
directory of your package manager's configured path prefix.
The absolute path to this bin
directory can be found with:
You can ensure that everything located in that bin
directory is on your shell's path by adding the following line to your shell's config file (e.g. .bashrc
or .zshrc
).
Once you've updated your shell config, make sure you source the file or restart your shell.
Last updated