All things Shopify and commerce
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
Hi @lovepangolin. Make sure you followed this.
https://shopify.dev/docs/api/shopify-cli
Thanks.
I have the same problem.
And following this is not a solution.
https://shopify.dev/docs/api/shopify-cli
still have the same error
I am facing the same issue. Did you solve it?
Were you able to solve this issue?
Removing the space from username can only help. I myself had tried alot of methods but none works.
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
This happening because there is space between your username.
Ruby unfortunately use unix file architecture.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024