User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gentoo:npm [2025/01/21 07:29] willygentoo:npm [2025/03/13 13:26] (current) willy
Line 1: Line 1:
-====== Using npm on Gentoo ======+====== H) Using npm on Gentoo ======
  
 Quite similarly to the issue with [[gentoo:pip|pip]], direct installation of NodeJS packages via **npm** poses some issues since you don't really want to mess up your system by installing out of tree packages. Everything //should// be managed by portage, but hey, there are literally thousand of packages that you might find usefull to install via **npm**. Quite similarly to the issue with [[gentoo:pip|pip]], direct installation of NodeJS packages via **npm** poses some issues since you don't really want to mess up your system by installing out of tree packages. Everything //should// be managed by portage, but hey, there are literally thousand of packages that you might find usefull to install via **npm**.
Line 18: Line 18:
 Add this to your **~/.bashrc**: Add this to your **~/.bashrc**:
 <file> <file>
-echo export PATH=$PATH:~/.npm_install/bin/ >> .bashrc+export PATH=$PATH:~/.npm_install/bin
 </file> </file>
  

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information