Skip to content
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

Installation breaks PATH on Windows #1933

Open
ofek opened this issue Nov 5, 2024 · 1 comment
Open

Installation breaks PATH on Windows #1933

ofek opened this issue Nov 5, 2024 · 1 comment

Comments

@ofek
Copy link

ofek commented Nov 5, 2024

My machine got messed up so I went looking and I believe the code is here. The setx command limits variables to length 1024.

The proper solution is to write using the registry as that code in the first link does for reading.

Side note: I notice that setup adds C:\Users\ofek\AppData\Local\Volta\bin to the user PATH and C:\Program Files\Volta\ to the system PATH. For the latter, I would recommend removing the trailing backslash as it's unnecessary.

@ofek
Copy link
Author

ofek commented Nov 5, 2024

It may also be nice to broadcast the change across existing windows using the following:

I'm glad the current behavior doesn't do that however because the only way I was able to recover the previous PATH was from printing it out in an existing window 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant