-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
[bug]: Unhandled exception: Bad state: The "HOME" environment variable is not set. This package (and POSIX) requires that HOME be set. #1063
Comments
Hey, Is it possible for you to set a I don't want to delete my home env. Mine is |
I get the same error. OS: Dart version: Flutter version:
Stacked error:
I remember it working like a week or two ago. Where should this "HOME" environment variable point to? I am confused, why do I need it now? UPDATE |
Yes, setting the It may be good to catch the error and prompt the user to set the variable on Windows since this seems to be a requirement now. |
@oppahansi it's a requirement for another package. We store global configuration in the directory that the operating system recommends. That directory is usually relative the the HOME directory, so when we look for the |
We can definitely have a better message for that issue. |
can you help me, how to set HOME enviroment variable. i quite new on this. im using windows 11 Thank you. |
Follow there instructions @nabambil : At the step when you will need to set a value for Example: |
Set a "C:\Users\xxxx" (xxxx is u user name) work to me, but, u can need create u project at same folder, u need open a Terminal at "C:\Users\xxxx" folder and create u project here |
Create a HOME environment variable and set its value to |
Thanks, creating an HOME environment variable and set its value to C:\Users\your_name that's all I need to do This worked for me well. |
Describe the bug
Hello, I've been unable to get the
stacked_cli
to work on Windows 10. Whenever I run the cli withstacked ...
it gives an error:Unhandled exception: Bad state: The "HOME" environment variable is not set. This package (and POSIX) requires that HOME be set.
I seen this and this, but as you can see below trying the local version didn't help and my Dart version shouldn't be a problem:
Dart SDK version: 3.2.0 (stable) (Tue Nov 14 18:26:59 2023 +0000) on "windows_x64"
Have any ideas what is causing the issue?
To reproduce
Following the docs, I ran the command to activate the cli. However, after the error I continued like so:
Then I downloaded the source from the
stacked_cli
repo and tried to run it:Expected behavior
To be able to run the cli. :)
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: