fnm
fnm copied to clipboard
How to install fnm, node and npm for all users (Debian)
Fnm installs itself and the node/npm versions in the $HOME directory (on Debian), but this makes the binaries only available to the user who installed fnm...
What is the preferred way of installing them for all users ?
I tried the following command with paths /usr/share
(binary not available) and /bin
(available in sudo only)
curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "/usr/share"
I also look at the FNM_DIR value of fnm env
but fnm env --fnm-dir <my path>
doesn't seem to set it forever
What would be your recommandations ?
Our need is to have fnm available for everyone (if it needs sudo, let it be)
but most importantly to have node and npm available without sudo for everyone...
I have the same requirement. Is there a way to do it?