Skip to content

Instantly share code, notes, and snippets.

@jeremyvaught
Created September 23, 2025 11:33
Show Gist options
  • Select an option

  • Save jeremyvaught/76cf912d0d6d11085ee453a7ee8350ca to your computer and use it in GitHub Desktop.

Select an option

Save jeremyvaught/76cf912d0d6d11085ee453a7ee8350ca to your computer and use it in GitHub Desktop.
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
# Add this line to your ‎`~/.profile`, ‎`~/.bashrc`, or ‎`~/.zshrc` (depending on your shell):
export PATH="$HOME/.npm-global/bin:$PATH"
source ~/.profile` # or ‎`~/.bashrc`, or ‎`~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment