Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
gentoo:npm [2025/01/21 07:29] – willy | gentoo:npm [2025/03/13 13:26] (current) – willy |
---|
====== 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**. |
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> |
| |