command failed with exit code 5: bundle install error Shopify Cli CMD

maoozahmad
Shopify Partner
7 0 0

Hi, I'm trying to set up a local development environment for the Shopify theme. I've installed all the necessary files. whenever I run CMD so I get this error (command failed with exit code 5: bundle install error how to solve this). with every kind of Shopify command. you can see the error image below for a better understanding.

 
can anyone help me to get over this problem?
maoozahmad_0-1687347764438.png

 

maoozahmad_0-1687347095054.pngmaoozahmad_1-1687347115417.png

 

 

 

Replies 12 (12)
eskres
Shopify Partner
2 0 0

Are you running cmd as administrator?

maoozahmad
Shopify Partner
7 0 0

Both ways it's Not working. 

maoozahmad
Shopify Partner
7 0 0

I'm facing the same issue in the Vs code terminal as well. 

eskres
Shopify Partner
2 0 0

Hi,

When I had this issue I had to run VS Code as administrator in order for the terminal to have the correct permissions.

If that doesn't work I hope somebody else can help you.

maoozahmad
Shopify Partner
7 0 0

Unfortunately it not working in my case. but Thanks For letting me know. 

MarceloDias
Shopify Partner
3 0 0

I hit to the same problem... 

maoozahmad
Shopify Partner
7 0 0

Hi, Can you help me how did you solve this issue?

welcomebrand
Shopify Partner
67 1 108

I'm having the same problem with a fresh install of everything and getting the same error messages  (also logged in as admin) 

 

Anyone have an alternative idea of things to try? 

maoozahmad
Shopify Partner
7 0 0

Do the window again I did the same it worked for me.

walover_llc
Shopify Partner
7 2 2

update/upgrade Homebrew

brew update

brew upgrade

 

Install/Update Xcode Command Line Tools

sudo rm -rf /Library/Developer/CommandLineTools

xcode-select --install

 

By doing the above, everything worked in my environment.

DucPham
Visitor
1 0 0

hi, I'm facing the same problem. Did you solve it?

maoozahmad
Shopify Partner
7 0 0

Yes, the problem is solved now. 

Do the window again I did the same it worked for me.