fnm
fnm copied to clipboard
WIP: Fix 'fnm default system' not working
This fixes the issue mentioned in #336, namely
➜ ~ fnm --version
fnm 1.22.8
➜ ~ fnm default system
error: Can't create symlink for alias: entity not found
➜ ~
@Schniz, I could only test this locally on my machine and it seems to be working. I'm also not sure if tests are running correctly, since most of them fail weirdly, even when ran on the most recent master branch.
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/schniz/fnm/8h3zynd6r
✅ Preview: https://fnm-git-fork-juliankrieger-master.schniz.vercel.app
I think you're correct on this one. Aliasing to the system version is not supported and that's correct, however I kind of expect fnm default system
to set the current node version to system
without printing an error message
I think catching the error and handling it higher up the chain is a good solution for now (at least until aliasing to the system version is supported)
however I kind of expect
fnm default system
to set the current node version tosystem
without printing an error message
But, this PR does not do that. Right? So it's not fixing fnm default system
, It's an aesthetic change for better error messages which I like. Can you please update the PR so it would be as I mentioned before? When we have time, we can actually fix the issue. But we can start with better error for now 😄
however I kind of expect
fnm default system
to set the current node version tosystem
without printing an error messageBut, this PR does not do that. Right? So it's not fixing
fnm default system
, It's an aesthetic change for better error messages which I like. Can you please update the PR so it would be as I mentioned before? When we have time, we can actually fix the issue. But we can start with better error for now 😄
Yes, I'll see if I find time this weekend
No pressure 😇 have a great weekend
@juliankrieger still working on this?
So strange, on M1 it works fine but on Intel machines seems not work EDIT: On M1 too not working, i don't know why and how