Hello everyone! I am newbie in shopify development. I wanna setting up them kit environment on windows 10. While I wanna download them using “theme download” command, I found this error “environment was found but not defined”. I search on google and YouTube for it but I did’t found any solution. Please help me out. Thanks in advance for your response.
Hello Mian,
The error says “Environment was found but not defined” but I still suspect that environment variables are not set properly.
I spent hours try to fix the issue and after million attempts, found this article https://community.shopify.com/c/Technical-Q-A/Setting-environment-variables-for-Themekit/m-p/609114#M14721
Steps to Follow if you are on Windows 10 :-
- Move your theme.exe app to
C:\Users\YOUR_USERNAMe\AppData\Roaming\Shopify\Themekit
-
Create a new file name “variables” in same folder as your config file. (follow instruction in the article above).
-
“Copy” this file and paste it in folder same as above(copy and paste, not move) - C:\Users\YOUR_USER\AppData\Roaming\Shopify\Themekit
-
In computer’s environment variables in Path folder make a new file that points to above folder(where your theme.exe )
-
Now re try theme download command, that works for me.
I know, its pretty long, but I would be happy if this can help somebody.
Thanks a lot!!!
Hi, I have a mac os. Can anyone help, please?