-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the mistake about Shell Setup #1110
Comments
it says fnm is not available. Maybe the initialization happens before cargo is added to PATH? |
nonono, I installed the cargo first, and then I ran |
Hello, this error has been resolved. When there is Chinese in the environment variable, |
Can you please attach the output you get? So we can escape it properly 🙏 |
Hey. Similar issue here, almost opened a new ticket. For me, my userprofile directory on windows contains the letter 'á':
To the environment variables it added After fixing it manually I reloaded the path Then I tried playing around a bit more:
After trying fnm env, it kinda killed my PATH as it is, and I had to reload it. Trying to use fnm env from the startup powershell script results in the same error. I then tried using it from a terminal with administrator priviliges just to see what would happen. After installing fnm there and trying to
So yeah... it is kind of broken, not only with chinese characters. Probably something something windows' own character encoding messing with stuff. |
I haven’t used windows in almost 10 years. Would be great to get your assistance in what needs to change in the fnm env output 🙏 |
Sadly fnm env's output does not seem to be the only thing broken. I tried uninstalling via winget and that also failed. The env variable path that was set was also incorrect. It's probably the handling of the OS path strings in general that's the problem. That said in the fnm env case specifically this line is to blame: My rust and knowledge on character encodings are far from anywhere close to even understand what needs to be changed, but I'll take a look when my time permits. Edit: Also I just noticed that some |
I installed fnm with cargo, used powershell.
But after I add the following to the end of my profile file:
fnm env --use-on-cd | Out-String | Invoke-Expression
the mistake would come out:
I'm sure the env var is corrent
The text was updated successfully, but these errors were encountered: