Environment was found but not defined - Windows 10

Mian_Tariq
Visitor
1 0 0
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.
Replies 3 (3)

sgmi
Visitor
1 0 0

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#...

 

Steps to Follow if you are on Windows 10 :- 

1. Move your theme.exe app to

 C:\Users\YOUR_USERNAMe\AppData\Roaming\Shopify\Themekit 

 

2. Create a new file name "variables" in same folder as your config file. (follow instruction in the article above).

 

3. "Copy" this file and paste it in folder same as above(copy and paste, not move)  - C:\Users\YOUR_USER\AppData\Roaming\Shopify\Themekit 

 

4. In computer's environment variables in Path folder make a new file that points to above folder(where your theme.exe )

 

5. 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.

 

 

chong
Excursionist
33 1 3

Thanks a lot!!!!

randomamateur
Visitor
2 0 0

Hi, I have a mac os. Can anyone help, please?