fnm icon indicating copy to clipboard operation
fnm copied to clipboard

Use consistent paths

Open thewh1teagle opened this issue 6 months ago • 1 comments

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

thewh1teagle avatar Aug 07 '24 15:08 thewh1teagle