I have logged in to my Shopify Development Store via VS Code. However, when I try to use ‘shopify theme dev --store’ code, I get the following 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/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.15.4/ext/ffi_c
C:/Ruby33-x64/bin/ruby.exe extconf.rb
checking for pkg-config for libffi… not found
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/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.15.4/ext/ffi_c
make DESTDIR= sitearchdir=./.gem.20240501-18252-eh1qh6
sitelibdir=./.gem.20240501-18252-eh1qh6 clean
current directory: C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.15.4/ext/ffi_c
make DESTDIR= sitearchdir=./.gem.20240501-18252-eh1qh6
sitelibdir=./.gem.20240501-18252-eh1qh6
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/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.15.4/ext/ffi_c/libffi-x64-mingw-ucrt”
“”/c/Users/Hardik(D)"’
make: *** [libffi.mk:6: "/c/Users/Hardik] Error 2
make failed, exit code 2
Gem files will remain installed in C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.15.4 for
inspection.
Results logged to C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/extensions/x64-mingw-ucrt/3.3.0/ffi-1.15.4/gem_make.out
C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:125:in run' C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:51:in block in make’
C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in each' C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:43:in make’
C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:42:in build' C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:193:in build_extension’
C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:227:in block in build_extensions' C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in each’
C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/ext/builder.rb:224:in build_extensions' C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/installer.rb:852:in build_extensions’
C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/rubygems_gem_installer.rb:72:in
build_extensions' C:/Users/Hardik Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/rubygems_gem_installer.rb:28:in install’
C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/source/rubygems.rb:207:in
install' C:/Users/Hardik Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/installer/gem_installer.rb:54:in install’
C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/installer/gem_installer.rb:16:in
install_from_spec' C:/Users/Hardik Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/installer/parallel_installer.rb:186:in do_install’
C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/installer/parallel_installer.rb:177:in
block in worker_pool' C:/Users/Hardik Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/worker.rb:62:in apply_func’
C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/worker.rb:57:in
block in process_queue' <internal:kernel>:187:in loop’
C:/Users/Hardik
Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.3.20/lib/bundler/worker.rb:54:in
process_queue' C:/Users/Hardik Bhuta/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.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
I have the latest version of FFI installed, but still getting errors.