Migration to Shopify Cli 3.x / theme dev call Error Bundler not found

Solved

Migration to Shopify Cli 3.x / theme dev call Error Bundler not found

Erik_Abrio
Shopify Partner
29 6 10

Hello, our development Team started migrating to Shopify Cli 3.x from 2.x we all followed the steps provided by cli dev documentation. It worked on all our devices properly but unfortunately not for me. When i want to open my theme like with shopify theme dev the following error appears: 

 shopify theme dev
Error: Bundler not found
    at validateBundler (file:///C:/Users/ErikZ%C3%B6ppig/AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/dist/public/node/ruby.js:176:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async validateRubyEnv (file:///C:/Users/ErikZ%C3%B6ppig/AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/dist/public/node/ruby.js:145:5)       
    at async installCLIDependencies (file:///C:/Users/ErikZ%C3%B6ppig/AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/dist/public/node/ruby.js:128:5)
    at async execCLI2 (file:///C:/Users/ErikZ%C3%B6ppig/AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/dist/public/node/ruby.js:29:5)

It seems like the bundler gem ist not installed but showing up correctly in my gem list. I hope somebody can provide a solution here. Completely uninstalling node/ruby and the cli came up to the same error for me. Maybe i forgot 1 step but not knowing which one.

Best Regards Erik 🙂

Accepted Solution (1)

Erik_Abrio
Shopify Partner
29 6 10

This is an accepted solution.

The Problem was initialized by a non ascii symbol in my user folder. The Installation created a corrupted new User Folder which brought me to this Error. I Fixed it by renaming my user Folder and the Repository Entry(Tutorial). And Updated it again and it worked like expected.

View solution in original post

Replies 2 (2)

mizou04
Shopify Partner
1 0 0

Hello Mr. E_Zampo, I had the same issue, but after checking the error stack I was getting, this line specifically :

 at validateBundler (file:///C:/Users/ErikZ%C3%B6ppig/AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/dist/public/node/ruby.js:176:15)

which bring you to this error message :

throw new AbortError('... run ${outputContent `${outputToken.genericShellCommand(`${g
emExecutable()} install bundler`)}...`)

 I could fix it with this line

sudo gem install bundler

Erik_Abrio
Shopify Partner
29 6 10

This is an accepted solution.

The Problem was initialized by a non ascii symbol in my user folder. The Installation created a corrupted new User Folder which brought me to this Error. I Fixed it by renaming my user Folder and the Repository Entry(Tutorial). And Updated it again and it worked like expected.