Configure npm global packages to path

This commit is contained in:
Marko Korhonen 2023-11-14 18:02:12 +02:00
parent 39ff6b0eb6
commit 690deb51c0
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