Say I ran npm install --global prettier
It gets installed into Users/nikivi/.fnm/node-versions/latest/installation/lib since I am currently using latest version of node (fnm use latest).
But if I fnm use v10.15.0 and run npm list -g --depth 0. I dont get any packages. This is very annoying.
Is it possible to make it so that all globally installed packages I have are available to me no matter what node version I use?