Created
August 14, 2022 07:51
-
-
Save darkobits/ffaee26c0f322ce9e1a8b9b65697701d to your computer and use it in GitHub Desktop.
Add $(npm bin) to $PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ensures that a locally-installed version of an NPM package will always be | |
# preferred over a globally installed version, and that we can run that | |
# package's executable like any other binary. To ensure a rogue package cannot | |
# install an executable that could shadow another binary (ie: 'ssh') make sure | |
# that $(npm bin) is appended rather than prepended to your existing $PATH. | |
export PATH="$PATH:$(npm bin)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment