Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
424 stars 126 forks source link

[Bug]: shopify theme dev, bundler failed to build #3496

Closed boilemmashem closed 7 months ago

boilemmashem commented 7 months ago

Please confirm that you have:

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Host locally with shopify theme dev

Actual behavior

Error thrown while interacting with bundler

Verbose output

$ shopify theme dev --verbose
2024-02-28T11:24:06.004Z: Running command theme dev
  shopify:theme:dev init version: @oclif/core@3.15.1 argv: [ '--verbose' ] +0ms
2024-02-28T11:24:06.021Z: Ensuring that the user is authenticated with the Theme API with the following scopes:
[]

2024-02-28T11:24:06.021Z: Ensuring that the user is authenticated with the Admin API with the following scopes for the store mikedummy.myshopify.com:
[]

2024-02-28T11:24:06.022Z: Getting session store...
2024-02-28T11:24:06.023Z: Validating existing session against the scopes:
[
  "openid",
  "https://api.shopify.com/auth/shop.admin.graphql",
  "https://api.shopify.com/auth/shop.admin.themes",
  "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
  "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
  "https://api.shopify.com/auth/partners.app.cli.access",
  "https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
  "adminApi": {
    "scopes": [],
    "storeFqdn": "mikedummy.myshopify.com"
  }
}

2024-02-28T11:24:06.023Z: Initiating the full authentication flow...
2024-02-28T11:24:06.024Z: Authorizing through Identity's website...

To run this command, log in to Shopify Partners.
๐Ÿ‘‰ Press any key to open the login page on your browser
2024-02-28T11:24:10.614Z: Reading the content of file at ../../AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/success.html...
2024-02-28T11:24:10.674Z: Reading the content of file at ../../AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/style.css...
2024-02-28T11:24:11.120Z: Authorization code received. Exchanging it for a CLI token...
2024-02-28T11:24:11.123Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=authorization_code&code=WUl3bUxVUjhSRjBDSEtOMTB3N2NJVkVFK0JLa2NMZkh2OHZYZDNDUjFteG51eXY5VDVqQlJOTUhZSEptVG1INXBMR1FRZlhjNUZVc0JCSTlZVzg4S2RWcFNMNm5EbFVhWm51RW5JZW8xdXQvU016dXNDUnErN1EzaDVWOTNrRUVHRFB2SFAvN01zc1E2a3lDUlI4c3REdGMrSjA1QjNMWWt2aDd2WXZRcFJCejkzTkkybUZiMDZ0OWxicEtuZjZWRVg0UmJvMTlvZWdkV2dkNW90TjdmUWVpajRTT01wK1ZiSGRWK1oxZVI0R1JjMWViRFFsYTNMRE1OUDZ1dEF4R2tWYnorOGVib0pDTUFrMlNaN3ZlVmxBWnpYdEZnMDZvV0tuZG1ta1dlTWd4cEk1K2JzNkNqMnRQd0YvQ3MyOHhBWHdKdEt6V0J3PT0tLUQyakxFRzY2ZER4NEFhdUYtLXNBem92THZ6ZEhxWk5qb2JGd3UzbFE9PQ&redirect_uri=http%3A%2F%2F127.0.0.1%3A3456&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&code_verifier=94drHcXGpipEOnbLTWJ2ZsXel2va2n6KakFCVJ1Oqro
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-02-28T11:24:11.425Z: Request to https://accounts.shopify.com/oauth/token?grant_type=authorization_code&code=WUl3bUxVUjhSRjBDSEtOMTB3N2NJVkVFK0JLa2NMZkh2OHZYZDNDUjFteG51eXY5VDVqQlJOTUhZSEptVG1INXBMR1FRZlhjNUZVc0JCSTlZVzg4S2RWcFNMNm5EbFVhWm51RW5JZW8xdXQvU016dXNDUnErN1EzaDVWOTNrRUVHRFB2SFAvN01zc1E2a3lDUlI4c3REdGMrSjA1QjNMWWt2aDd2WXZRcFJCejkzTkkybUZiMDZ0OWxicEtuZjZWRVg0UmJvMTlvZWdkV2dkNW90TjdmUWVpajRTT01wK1ZiSGRWK1oxZVI0R1JjMWViRFFsYTNMRE1OUDZ1dEF4R2tWYnorOGVib0pDTUFrMlNaN3ZlVmxBWnpYdEZnMDZvV0tuZG1ta1dlTWd4cEk1K2JzNkNqMnRQd0YvQ3MyOHhBWHdKdEt6V0J3PT0tLUQyakxFRzY2ZER4NEFhdUYtLXNBem92THZ6ZEhxWk5qb2JGd3UzbFE9PQ&redirect_uri=http%3A%2F%2F127.0.0.1%3A3456&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&code_verifier=94drHcXGpipEOnbLTWJ2ZsXel2va2n6KakFCVJ1Oqro completed in 288 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"bd84bc200c7725c08d7ee2f542fae672"
 - x-request-id: d684fdd9-c1f1-4fdc-8cb6-5ccdf5018715

2024-02-28T11:24:11.435Z: CLI token received. Exchanging it for application tokens...
2024-02-28T11:24:11.438Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-02-28T11:24:11.440Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-02-28T11:24:11.443Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=****
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-02-28T11:24:11.446Z: Sending POST request to URL https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fmikedummy.myshopify.com%2Fadmin
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-02-28T11:24:11.689Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=271e16d403dfa18082ffb3d197bd2b5f4479c3fc32736d69296829cbb28d41a6&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.app.cli.access&subject_token=**** completed in 239 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"ddcc7b09b62c418a2510e3324872aad9"
 - x-request-id: bc8393df-f551-4b4e-9f3e-8561b07d7599

2024-02-28T11:24:11.701Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=ee139b3d-5861-4d45-b387-1bc3ada7811c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.storefront-renderer.devtools&subject_token=**** completed in 249 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"76f8c8caf99a667b751c2c2ab0f31298"
 - x-request-id: 80fc182b-322a-4794-955f-957ceaa4a6c1

2024-02-28T11:24:11.712Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=7ee65a63608843c577db8b23c4d7316ea0a01bd2f7594f8a9c06ea668c1b775c&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.graphql+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fshop.admin.themes+https%3A%2F%2Fapi.shopify.com%2Fauth%2Fpartners.collaborator-relationships.readonly&subject_token=****&destination=https%3A%2F%2Fmikedummy.myshopify.com%2Fadmin completed in 258 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"c5ab226adab1e20d83759dcadc894b4d"
 - x-request-id: 35f1af8f-abc9-4c9b-80c8-dcf3711e6107

2024-02-28T11:24:11.768Z: Request to https://accounts.shopify.com/oauth/token?grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exchange&requested_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&subject_token_type=urn%3Aietf%3Aparams%3Aoauth%3Atoken-type%3Aaccess_token&client_id=fbdb2649-e327-4907-8f67-908d24cfd7e3&audience=32ff8ee5-82b8-4d93-9f8a-c6997cefb7dc&scope=https%3A%2F%2Fapi.shopify.com%2Fauth%2Fdestinations.readonly&subject_token=**** completed in 315 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"ef941a92dd159075d5c16707842c2813"
 - x-request-id: 3994bcc5-3198-4769-aa65-b6ad1df629c1

โœ” Logged in.
2024-02-28T11:24:11.776Z: Setting session store...
2024-02-28T11:24:11.785Z: Ensuring that the user is authenticated with the Storefront API with the following scopes:
[]

2024-02-28T11:24:11.786Z: Getting session store...
2024-02-28T11:24:11.809Z: Validating existing session against the scopes:
[
  "openid",
  "https://api.shopify.com/auth/shop.admin.graphql",
  "https://api.shopify.com/auth/shop.admin.themes",
  "https://api.shopify.com/auth/partners.collaborator-relationships.readonly",
  "https://api.shopify.com/auth/shop.storefront-renderer.devtools",
  "https://api.shopify.com/auth/partners.app.cli.access",
  "https://api.shopify.com/auth/destinations.readonly"
]
For applications:
{
  "storefrontRendererApi": {
    "scopes": []
  }
}

2024-02-28T11:24:11.816Z: Sending Identity Introspection request to URL: https://accounts.shopify.com/oauth/introspection
2024-02-28T11:24:11.817Z: Sending POST request to URL https://accounts.shopify.com/oauth/introspection
With request headers:
 - User-Agent: Shopify CLI; v=3.56.2
 - Keep-Alive: timeout=30
 - Sec-CH-UA-PLATFORM: win32
 - Content-Type: application/json

2024-02-28T11:24:12.046Z: Request to https://accounts.shopify.com/oauth/introspection completed in 223 ms
With response headers:
 - cache-control: no-cache, no-store, private, must-revalidate, max-age=0
 - content-type: application/json; charset=utf-8
 - etag: W/"5f633db895d3d5116fe80bc342ff93f8"
 - x-request-id: 42b40530-67ad-4552-b8f2-31a7bc9b57cd

2024-02-28T11:24:12.050Z: The identity token is valid: true
2024-02-28T11:24:12.050Z:
The validation of the token for application/identity completed with the following results:
- It's expired: false
- It's invalid in identity: false

2024-02-28T11:24:12.067Z: 
Running system process:
  ยท Command: ruby -v
  ยท Working directory: C:/Users/Mike Hart/repos/mhart-shopify-training

2024-02-28T11:24:12.108Z: 
Running system process:
  ยท Command: bundle -v
  ยท Working directory: C:/Users/Mike Hart/repos/mhart-shopify-training

2024-02-28T11:24:12.493Z: Reading the content of file at ../../AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby/Gemfile...
2024-02-28T11:24:12.508Z: 
Running system process:
  ยท Command: bundle install
  ยท Working directory: C:/Users/Mike Hart/AppData/Roaming/npm/node_modules/@shopify/theme/node_modules/@shopify/cli-kit/assets/cli-ruby

โ”€โ”€ external error โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Error coming from `bundle install`

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

    current directory: C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c
C:/tools/ruby33/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/Develop
er/SDKs/MacOSX.sdk/usr/include/ffi... no
checking for whether -Wl,--exclude-libs,ALL is accepted as LDFLAGS... yes
checking for rb_gc_mark_movable()... yes
checking for whether -pthread is accepted as LDFLAGS... yes
creating extconf.h
creating Makefile

current directory: C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c
make DESTDIR\= sitearchdir\=./.gem.20240228-12392-8sl2o2 sitelibdir\=./.gem.20240228-12392-8sl2o2 clean

current directory: C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c
make DESTDIR\= sitearchdir\=./.gem.20240228-12392-8sl2o2 sitelibdir\=./.gem.20240228-12392-8sl2o2
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/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c/libffi-x64-mingw-ucrt" ""/c/Users/Mike(D)"'
make: *** [libffi.mk:6: "/c/Users/Mike] Error 2

make failed, exit code 2

Gem files will remain installed in C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3 for inspection.
Results logged to C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/extensions/x64-mingw-ucrt/3.3.0/ffi-1.16.3/gem_make.out

  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:125:in `run'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:51:in `block in make'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:43:in `each'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:43:in `make'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:42:in `build'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:193:in `build_extension'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:227:in `block in build_extensions'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:224:in `each'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:224:in `build_extensions'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/installer.rb:852:in `build_extensions'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:28:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/source/rubygems.rb:202:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:54:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:156:in `do_install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:147:in `block in worker_pool'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:62:in `apply_func'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:54:in `process_queue'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing ffi (1.16.3), 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

Bundler::DirectoryRemovalError: Could not delete previous installation of `C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/nokogiri-1.14.5`.
The underlying error was Errno::ENOENT: No such file or directory @ apply2files - C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/nokogiri-1.14.5/ext/nokogiri/tmp/x86_64-w64-m
ingw32/ports/libiconv/1.17/libiconv-1.17/libcharset/lib/Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/nokogiri-1.14.5/ext/nokogiri, with backtrace:
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/fileutils/lib/fileutils.rb:2342:in `unlink'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-'
...
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:54:in `process_queue'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

Bundler Error Backtrace:
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:115:in `rescue in strict_rm_rf'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:110:in `strict_rm_rf'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:19:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/source/rubygems.rb:202:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:54:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:156:in `do_install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:147:in `block in worker_pool'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:62:in `apply_func'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:54:in `process_queue'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing nokogiri (1.14.5), and Bundler cannot continue.

In Gemfile:
  theme-check was resolved to 1.15.0, which depends on
    nokogiri

C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:190:in `handle_error'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:96:in `call'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:67:in `call'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:244:in `install_in_parallel'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:201:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:89:in `block in run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/process_lock.rb:12:in `block in lock'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/process_lock.rb:9:in `open'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/process_lock.rb:9:in `lock'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:71:in `run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:23:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli/install.rb:62:in `run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:261:in `block in install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/settings.rb:130:in `temporary'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:260:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:34:in `dispatch'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:28:in `start'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/exe/bundle:37:in `block in <top (required)>'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/exe/bundle:29:in `<top (required)>'
  C:/tools/ruby33/bin/bundle:32:in `load'
  C:/tools/ruby33/bin/bundle:32:in `<main>'
Running `bundle install` with bundler 2.4.19
Found no changes, using resolution from the lockfile
The definition is missing ["listen-3.7.1", "theme-check-1.15.0", "nokogiri-1.14.5-x64-mingw-ucrt", "rb-inotify-0.10.1", "ffi-1.16.3-x64-mingw-ucrt"]
HTTP GET https://index.rubygems.org/versions
HTTP 304 Not Modified https://index.rubygems.org/versions
Fetching gem metadata from https://rubygems.org/
Looking up gems ["addressable", "ansi", "ast", "bigdecimal", "bugsnag", "builder", "byebug", "coderay", "colorize", "concurrent-ruby", "crack", "cucumber", "cucumber-core", "cucumber-create-meta",      
"cucumber-cucumber-expressions", "cucumber-gherkin", "cucumber-html-formatter", "cucumber-messages", "cucumber-tag-expressions", "cucumber-wire", "diff-lcs", "fakefs", "ffi", "hashdiff", "iniparse",    
"json", "language_server-protocol", "liquid", "listen", "method_source", "mime-types", "mime-types-data", "minitest", "minitest-fail-fast", "minitest-reporters", "mocha", "multi_test", "nokogiri",      
"parallel", "parser", "pry", "pry-byebug", "public_suffix", "racc", "rack", "rainbow", "rake", "rb-fsevent", "rb-inotify", "regexp_parser", "rexml", "rubocop", "rubocop-ast", "rubocop-minitest",        
"rubocop-rake", "rubocop-shopify", "ruby-progressbar", "ruby2_keywords", "sys-uname", "theme-check", "timecop", "unicode-display_width", "wdm", "webmock"]
Looking up gems ["rspec", "httparty", "multi_json", "columnize", "debugger-linecache", "slop", "rb-readline", "hoe", "functional-ruby", "ref", "safe_yaml", "polyglot", "term-ansicolor", "treetop",      
"json_pure", "gherkin", "gherkin3", "event-bus", "cucumber-expressions", "cucumber-formatter-dots", "cucumber-ci-environment", "mini_mime", "backports", "cucumber-tag_expressions", "google-protobuf",   
"protobuf-cucumber", "extlib", "rb-fchange", "rb-kqueue", "celluloid", "celluloid-io", "ruby_dep", "ruby_parser", "powerbar", "metaclass", "weakling", "mini_portile", "mini_portile2", "pkg-config",     
"sexp_processor", "win32console", "yard", "spoon", "powerpack", "astrolabe", "tins", "jaro_winkler", "psych", "base64", "strscan", "activesupport", "nokogumbo"]
Looking up gems ["rspec-core", "rspec-expectations", "rspec-mocks", "jnunemaker-crack", "multi_xml", "ruby_core_source", "debugger-ruby_core_source", "rubyforge", "RubyInline", "gemcutter", "facets",   
"os", "c21e", "trollop", "spruz", "middleware", "thor", "thread_safe", "english", "win32-api", "ffi-compiler", "nio4r", "bundler", "dotenv", "nenv", "rspec-logsplit", "timers", "facter",
"celluloid-essentials", "celluloid-extras", "celluloid-fsm", "celluloid-pool", "celluloid-supervision", "ParseTree", "hashie", "net-ftp", "erubis", "webrick", "sync", "jar-dependencies", "stringio",    
"i18n", "memcache-client", "tzinfo", "zeitwerk", "connection_pool", "drb", "mutex_m"]
Looking up gems ["rspec-support", "archive-tar-minitar", "ZenTest", "net-scp", "curses", "atomic", "test-unit", "dotenv-deployment", "hitimes", "celluloid-gems", "coveralls", "CFPropertyList",
"sys-admin", "win32-dir", "windows-api", "windows-pr", "win32-security", "hocon", "sys-filesystem", "SexpProcessor", "net-protocol", "time", "ruby-maven", "abstract"]
Looking up gems ["net-ssh", "minitar", "minitar-cli", "power_assert", "configuration", "mkrf", "rest-client", "simplecov", "libxml-ruby", "nkf", "ffi-win32-extensions", "io-wait", "timeout",
"maven-tools", "ruby-maven-libs", "date"]
Looking up gems ["needle", "jruby-pageant", "bcrypt_pbkdf", "rbnacl", "rbnacl-libsodium", "pattern-match", "rdoc", "netrc", "http-cookie", "http-accept", "simplecov-html", "docile", "lockfile",
"simplecov_json_formatter", "virtus"]
Looking up gems ["domain_name", "sqlite3", "descendants_tracker", "axiom-types", "coercible", "equalizer"]
Looking up gems ["unf", "ice_nine", "adamantium"]
Looking up gems ["unf_ext", "memoizable"]
The lockfile does not have all gems needed for the current platform though, Bundler will still re-resolve dependencies
Resolving dependencies...
Using ast 2.4.2
Using bundler 2.4.19
0:  ast (2.4.2) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/ast-2.4.2.gemspec
Using concurrent-ruby 1.2.3
Using liquid 5.4.0
Using rb-fsevent 0.11.2
Using mini_portile2 2.8.5
4:  concurrent-ruby (1.2.3) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/concurrent-ruby-1.2.3.gemspec
Using racc 1.7.3
Using wdm 0.1.1
10:  bundler (2.4.19) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/bundler-2.4.19.gemspec
Using bugsnag 6.26.3
8:  bugsnag (6.26.3) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/bugsnag-6.26.3.gemspec
1:  wdm (0.1.1) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/wdm-0.1.1.gemspec
0:  rb-fsevent (0.11.2) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/rb-fsevent-0.11.2.gemspec
3:  racc (1.7.3) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/racc-1.7.3.gemspec
7:  mini_portile2 (2.8.5) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/mini_portile2-2.8.5.gemspec
Using parser 3.3.0.5
9:  parser (3.3.0.5) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/parser-3.3.0.5.gemspec
6:  liquid (5.4.0) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/liquid-5.4.0.gemspec
Installing ffi 1.16.3 with native extensions
Using rubygems directory: C:/Users/Mike Hart/.local/share/gem/ruby/3.3.0
Installing nokogiri 1.14.5 with native extensions
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

2024-02-28T11:24:33.285Z: Unable to log analytics event - no information on executed command
2024-02-28T11:24:33.307Z: Reporting handled error to Bugsnag: Command failed with exit code 5: bundle install
Bundler::InstallError: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c
C:/tools/ruby33/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 rb_gc_mark_movable()... yes
checking for whether -pthread is accepted as LDFLAGS... yes
creating extconf.h
creating Makefile

current directory: C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c
make DESTDIR\= sitearchdir\=./.gem.20240228-12392-8sl2o2 sitelibdir\=./.gem.20240228-12392-8sl2o2 clean

current directory: C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c
make DESTDIR\= sitearchdir\=./.gem.20240228-12392-8sl2o2 sitelibdir\=./.gem.20240228-12392-8sl2o2
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/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3/ext/ffi_c/libffi-x64-mingw-ucrt" ""/c/Users/Mike(D)"'
make: *** [libffi.mk:6: "/c/Users/Mike] Error 2

make failed, exit code 2

Gem files will remain installed in C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/ffi-1.16.3 for inspection.
Results logged to C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/extensions/x64-mingw-ucrt/3.3.0/ffi-1.16.3/gem_make.out

  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:125:in `run'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:51:in `block in make'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:43:in `each'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:43:in `make'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/ext_conf_builder.rb:42:in `build'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:193:in `build_extension'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:227:in `block in build_extensions'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:224:in `each'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/ext/builder.rb:224:in `build_extensions'
  C:/tools/ruby33/lib/ruby/site_ruby/3.3.0/rubygems/installer.rb:852:in `build_extensions'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:72:in `build_extensions'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:28:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/source/rubygems.rb:202:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:54:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:156:in `do_install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:147:in `block in worker_pool'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:62:in `apply_func'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:54:in `process_queue'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing ffi (1.16.3), 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

Bundler::DirectoryRemovalError: Could not delete previous installation of `C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/nokogiri-1.14.5`.
The underlying error was Errno::ENOENT: No such file or directory @ apply2files - C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/nokogiri-1.14.5/ext/nokogiri/tmp/x86_64-w64-mingw32/ports/libiconv/1.17/libiconv-1.17/libcharset/lib/Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/nokogiri-1.14.5/ext/nokogiri, with backtrace:
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/fileutils/lib/fileutils.rb:2342:in `unlink'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/fileutils/lib/fileutils.rb:2388:in `block in postorder_traverse'
...
...
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/fileutils/lib/fileutils.rb:2387:in `each'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/fileutils/lib/fileutils.rb:2387:in `postorder_traverse'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/fileutils/lib/fileutils.rb:1468:in `remove_entry'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/fileutils/lib/fileutils.rb:1383:in `remove_entry_secure'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler.rb:332:in `rm_rf'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:111:in `strict_rm_rf'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:19:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/source/rubygems.rb:202:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:54:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:156:in `do_install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:147:in `block in worker_pool'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:62:in `apply_func'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:54:in `process_queue'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

Bundler Error Backtrace:
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:115:in `rescue in strict_rm_rf'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:110:in `strict_rm_rf'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/rubygems_gem_installer.rb:19:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/source/rubygems.rb:202:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:54:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:156:in `do_install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:147:in `block in worker_pool'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:62:in `apply_func'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:57:in `block in process_queue'
  <internal:kernel>:187:in `loop'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:54:in `process_queue'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing nokogiri (1.14.5), and Bundler cannot continue.

In Gemfile:
  theme-check was resolved to 1.15.0, which depends on
    nokogiri

C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:190:in `handle_error'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:96:in `call'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer/parallel_installer.rb:67:in `call'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:244:in `install_in_parallel'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:201:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:89:in `block in run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/process_lock.rb:12:in `block in lock'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/process_lock.rb:9:in `open'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/process_lock.rb:9:in `lock'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:71:in `run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/installer.rb:23:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli/install.rb:62:in `run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:261:in `block in install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/settings.rb:130:in `temporary'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:260:in `install'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:34:in `dispatch'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/cli.rb:28:in `start'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/exe/bundle:37:in `block in <top (required)>'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
  C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/gems/bundler-2.4.19/exe/bundle:29:in `<top (required)>'
  C:/tools/ruby33/bin/bundle:32:in `load'
  C:/tools/ruby33/bin/bundle:32:in `<main>'
Running `bundle install` with bundler 2.4.19
Found no changes, using resolution from the lockfile
The definition is missing ["listen-3.7.1", "theme-check-1.15.0", "nokogiri-1.14.5-x64-mingw-ucrt", "rb-inotify-0.10.1", "ffi-1.16.3-x64-mingw-ucrt"]
HTTP GET https://index.rubygems.org/versions
HTTP 304 Not Modified https://index.rubygems.org/versions
Fetching gem metadata from https://rubygems.org/
Looking up gems ["addressable", "ansi", "ast", "bigdecimal", "bugsnag", "builder", "byebug", "coderay", "colorize", "concurrent-ruby", "crack", "cucumber", "cucumber-core", "cucumber-create-meta", "cucumber-cucumber-expressions", "cucumber-gherkin", "cucumber-html-formatter", "cucumber-messages", "cucumber-tag-expressions", "cucumber-wire", "diff-lcs", "fakefs", "ffi", "hashdiff", "iniparse", "json", "language_server-protocol", "liquid", "listen", "method_source", "mime-types", "mime-types-data", "minitest", "minitest-fail-fast", "minitest-reporters", "mocha", "multi_test", "nokogiri", "parallel", "parser", "pry", "pry-byebug", "public_suffix", "racc", "rack", "rainbow", "rake", "rb-fsevent", "rb-inotify", "regexp_parser", "rexml", "rubocop", "rubocop-ast", "rubocop-minitest", "rubocop-rake", "rubocop-shopify", "ruby-progressbar", "ruby2_keywords", "sys-uname", "theme-check", "timecop", "unicode-display_width", "wdm", "webmock"]
Looking up gems ["rspec", "httparty", "multi_json", "columnize", "debugger-linecache", "slop", "rb-readline", "hoe", "functional-ruby", "ref", "safe_yaml", "polyglot", "term-ansicolor", "treetop", "json_pure", "gherkin", "gherkin3", "event-bus", "cucumber-expressions", "cucumber-formatter-dots", "cucumber-ci-environment", "mini_mime", "backports", "cucumber-tag_expressions", "google-protobuf", "protobuf-cucumber", "extlib", "rb-fchange", "rb-kqueue", "celluloid", "celluloid-io", "ruby_dep", "ruby_parser", "powerbar", "metaclass", "weakling", "mini_portile", "mini_portile2", "pkg-config", "sexp_processor", "win32console", "yard", "spoon", "powerpack", "astrolabe", "tins", "jaro_winkler", "psych", "base64", "strscan", "activesupport", "nokogumbo"]
Looking up gems ["rspec-core", "rspec-expectations", "rspec-mocks", "jnunemaker-crack", "multi_xml", "ruby_core_source", "debugger-ruby_core_source", "rubyforge", "RubyInline", "gemcutter", "facets", "os", "c21e", "trollop", "spruz", "middleware", "thor", "thread_safe", "english", "win32-api", "ffi-compiler", "nio4r", "bundler", "dotenv", "nenv", "rspec-logsplit", "timers", "facter", "celluloid-essentials", "celluloid-extras", "celluloid-fsm", "celluloid-pool", "celluloid-supervision", "ParseTree", "hashie", "net-ftp", "erubis", "webrick", "sync", "jar-dependencies", "stringio", "i18n", "memcache-client", "tzinfo", "zeitwerk", "connection_pool", "drb", "mutex_m"]
Looking up gems ["rspec-support", "archive-tar-minitar", "ZenTest", "net-scp", "curses", "atomic", "test-unit", "dotenv-deployment", "hitimes", "celluloid-gems", "coveralls", "CFPropertyList", "sys-admin", "win32-dir", "windows-api", "windows-pr", "win32-security", "hocon", "sys-filesystem", "SexpProcessor", "net-protocol", "time", "ruby-maven", "abstract"]
Looking up gems ["net-ssh", "minitar", "minitar-cli", "power_assert", "configuration", "mkrf", "rest-client", "simplecov", "libxml-ruby", "nkf", "ffi-win32-extensions", "io-wait", "timeout", "maven-tools", "ruby-maven-libs", "date"]
Looking up gems ["needle", "jruby-pageant", "bcrypt_pbkdf", "rbnacl", "rbnacl-libsodium", "pattern-match", "rdoc", "netrc", "http-cookie", "http-accept", "simplecov-html", "docile", "lockfile", "simplecov_json_formatter", "virtus"]
Looking up gems ["domain_name", "sqlite3", "descendants_tracker", "axiom-types", "coercible", "equalizer"]
Looking up gems ["unf", "ice_nine", "adamantium"]
Looking up gems ["unf_ext", "memoizable"]
The lockfile does not have all gems needed for the current platform though, Bundler will still re-resolve dependencies
Resolving dependencies...
Using ast 2.4.2
Using bundler 2.4.19
0:  ast (2.4.2) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/ast-2.4.2.gemspec
Using concurrent-ruby 1.2.3
Using liquid 5.4.0
Using rb-fsevent 0.11.2
Using mini_portile2 2.8.5
4:  concurrent-ruby (1.2.3) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/concurrent-ruby-1.2.3.gemspec
Using racc 1.7.3
Using wdm 0.1.1
10:  bundler (2.4.19) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/bundler-2.4.19.gemspec
Using bugsnag 6.26.3
8:  bugsnag (6.26.3) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/bugsnag-6.26.3.gemspec
1:  wdm (0.1.1) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/wdm-0.1.1.gemspec
0:  rb-fsevent (0.11.2) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/rb-fsevent-0.11.2.gemspec
3:  racc (1.7.3) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/racc-1.7.3.gemspec
7:  mini_portile2 (2.8.5) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/mini_portile2-2.8.5.gemspec
Using parser 3.3.0.5
9:  parser (3.3.0.5) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/parser-3.3.0.5.gemspec
6:  liquid (5.4.0) from C:/Users/Mike Hart/AppData/Local/shopify-gems-nodejs/Cache/ruby/3.3.0/specifications/liquid-5.4.0.gemspec
Installing ffi 1.16.3 with native extensions
Using rubygems directory: C:/Users/Mike Hart/.local/share/gem/ruby/3.3.0
Installing nokogiri 1.14.5 with native extensions
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
$

Reproduction steps

  1. Ruby installed via choco
  2. shopify theme init for new dawn clone
  3. shopify theme dev --store <storename>

Operating System

WIndows 11

Shopify CLI version (check your project's package.json if you're not sure)

3.56.3

Shell

Powershell, Git Bash

Node version (run node -v if you're not sure)

20.11..1

What language and version are you using in your application?

Ruby 3.3.0

boilemmashem commented 7 months ago

Managed to figure out some of the required gems werent installing due to the space in my root user folder. See "/c/Users/Mike(D)" above. Removed the space from this and bundler was able to install correctly.