fnm icon indicating copy to clipboard operation
fnm copied to clipboard

How to install fnm, node and npm for all users (Debian)

Open gui3 opened this issue 1 year ago • 2 comments

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...

gui3 avatar Sep 20 '23 14:09 gui3

I have the same requirement. Is there a way to do it?

pplmx avatar Jun 11 '24 09:06 pplmx