Configure npm global packages to path

This commit is contained in:
Marko Korhonen 2023-11-14 18:02:12 +02:00
parent dda94cb793
commit 0e71bad9d2
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
3 changed files with 125 additions and 71 deletions

View file

@ -27,6 +27,9 @@ export USRNAME=$USER
# Add ~/.local/bin to path
export PATH="$HOME/.local/bin:$PATH"
#
# Add locally installed npm binaries to path
export PATH="$HOME/.local/share/npm/bin:$PATH"
# Add ~/.cargo/bin to path
export PATH="$HOME/.cargo/bin:$PATH"

1
home/.npmrc Normal file
View file

@ -0,0 +1 @@
prefix=~/.local/share/npm