How can I fix the theme dev error in my Shopify store?

How can I fix the theme dev error in my Shopify store?

lovepangolin
New Member
4 0 0

All of a sudden my shopify theme dev commands started giving me the error below, can someone please tell me the way ahead. Thank you.

$ shopify theme dev
── external error 

Error coming from `bundle install`

Command failed with exit code 5: bundle install
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/ffi-1.15.4/ext/ffi_c
C:/Ruby32-x64/bin/ruby.exe extconf.rb
checking for ffi.h... no
checking for ffi.h in
/usr/local/include,/usr/include/ffi,/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi...
no
checking for whether -Wl,--exclude-libs,ALL is accepted as LDFLAGS... yes
checking for whether -pthread is accepted as LDFLAGS... yes
creating extconf.h
creating Makefile

current directory: C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/ffi-1.15.4/ext/ffi_c
make DESTDIR\= sitearchdir\=./.gem.20240424-30472-qkk6ey
sitelibdir\=./.gem.20240424-30472-qkk6ey clean

current directory: C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/ffi-1.15.4/ext/ffi_c
make DESTDIR\= sitearchdir\=./.gem.20240424-30472-qkk6ey
sitelibdir\=./.gem.20240424-30472-qkk6ey
generating ffi_c-x64-mingw-ucrt.def
/bin/sh: -c: line 1: syntax error near unexpected token `('
/bin/sh: -c: line 1: `mkdir -p "/c/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/ffi-1.15.4/ext/ffi_c/libffi-x64-mingw-ucrt"
""/c/Users/Sandeep(D)"'
make: *** [libffi.mk:6: "/c/Users/Sandeep] Error 2

make failed, exit code 2

Gem files will remain installed in C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/ffi-1.15.4 for
inspection.
Results logged to C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/extensions/x64-mingw-ucrt/3.2.0/ffi-1.15.4/gem_make.out

C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:125:in `run'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:51:in `block in
make'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:43:in `each'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:43:in `make'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/ext_conf_builder.rb:42:in
`build'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:193:in
`build_extension'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:227:in `block
in build_extensions'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:224:in `each'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/ext/builder.rb:224:in
`build_extensions'
C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:852:in
`build_extensions'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/rubygems_gem_installer.rb:72:in
`build_extensions'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/source/rubygems.rb:207:in
`install'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/installer/parallel_installer.rb:177:in
`block in worker_pool'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/worker.rb:62:in
`apply_func'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/worker.rb:57:in
`block in process_queue'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/worker.rb:54:in
`loop'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/worker.rb:54:in
`process_queue'
C:/Users/Sandeep
Patkar/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.2.0/gems/bundler-2.3.20/lib/bundler/worker.rb:91:in
`block (2 levels) in create_threads'

An error occurred while installing ffi (1.15.4), and Bundler cannot continue.

In Gemfile:
listen was resolved to 3.7.1, which depends on
rb-inotify was resolved to 0.10.1, which depends on
ffi
Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies...
Using bundler 2.3.20
Using concurrent-ruby 1.1.10
Using rb-fsevent 0.11.1
Using wdm 0.1.1
Using bugsnag 6.24.2
Installing ffi 1.15.4 with native extensions



Replies 7 (7)

BrainStation23
Shopify Partner
413 62 60

Hi @lovepangolin. Make sure you followed this.

https://shopify.dev/docs/api/shopify-cli

 

Thanks.

Brain Station 23 PLC (Mail: js.sbu@brainstation-23.com)
- Was your question answered? Mark it as an Accepted Solution
- Did the solution not address your concern? We kindly request that share or mail your store URL with us this will enable us to collaborate more closely.
- Explore our Shopify public apps
Grikaaa
Shopify Partner
1 0 0

I have the same problem.

And following this is not a solution.

https://shopify.dev/docs/api/shopify-cli
still have the same error


duxngnd
Shopify Partner
1 0 0

I am facing the same issue. Did you solve it?

wayforward
Shopify Partner
43 4 6

Were you able to solve this issue?

Abhinandan48
Shopify Partner
2 0 0

Removing the space from username can only help. I myself had tried alot of methods but none works.

wayforward
Shopify Partner
43 4 6

It did not work.

 

I created another user with one word and no space. Installed everything but the same error.

 

Also, everything was working fine and suddenly from last couple of days the issue started and I don't remember updating anything that may have caused this

Abhinandan48
Shopify Partner
2 0 0

This happening because there is space between your username.

Ruby unfortunately use unix file architecture.