I am trying to use fnm with nixos and I am pretty novel to the idea of nixos and a bit confused. I read the docs but I still could not figure out what I should change so the dynamic linking works? I also search for somebody he also struggled with fnm, but I could not find anybody,
$ node
Could not start dynamically linked executable: node
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
Package it with nix (see Packaging existing software with Nix — nix.dev documentation) and then use that package.
EDIT: actually it’s already packaged in nixpkgs.
But reading the description it’s a “nodejs version manager” which is not going to work well on nixos, things that download random binaries not built with nix won’t work.
Your best bet is to just use the nodejs version that you need directly - search on NixOS Search to find the name.
yeah almost though so. I am not relaying on fnm (changing to different node versions) but it is a bummer that it doesn’t work out of the box.
Thanks for the help!