fnm
fnm copied to clipboard
Use consistent paths
Currently every time the shell open in PowerShell the PATH contains random entry from fnm. It causing multiple issues. Please use consistent PATH maybe inherit it from the node version / commit.
Thanks for this great project!
Related: https://github.com/Schniz/fnm/issues/1087 https://github.com/Schniz/fnm/issues/808 https://github.com/rust-lang/rust-analyzer/issues/17819 https://github.com/rust-lang/rust-analyzer/issues/17807
By the way the example random entry: C:\Users\User\AppData\Local\fnm_multishells\988_1723044589781
A workaround for now:
PowerShell
fnm list
fnm alias default 20.16.0
Remove RC file of fnm by comment it out
code $PROFILE
Add the default fnm alias path to Windows env
C:\Users\User\AppData\Roaming\fnm\aliases\default