New Shopify Certification now available: Liquid Storefronts for Theme Developers

theme app extension push with cli 3.0 need help

Shopify Partner
278 8 39

Hi all,

I have shopify theme app extension build with the 2.0 

now Shopify CLI 2.0 Sunset. Now i want make updates into the my theme app extension.

I have aded the CLi in the my node project. 

I am getting the Error while ruining those command 


npm run shopify app dev

npm run shopify app deploy 




rror coming from `bundle install`

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

current directory:
/snap/ruby/317/bin/ruby extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:


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

"@shopify/app": "^3.20.1", "@shopify/cli": "^3.20.1",

and latesh "@shopify/app": "^3.47.5",
"@shopify/cli": "^3.47.5",
"@shopify/cli-kit": "^3.47.5",

But i am getting the same Error . 

Replies 4 (4)
Shopify Partner
5 0 1

did you find the solution 
I'm in the same situation , but after doing these steps  :

  1. Create package.json file at root of your project directory and copy content from shopify doc and paste

  2. npm install

  3. npm run shopify app generate extension

  4. npm run deploy

with the last cmd it indicates that will remove the old extension so I don't want to take this risk 😕


Shopify Partner
278 8 39

@abouda96  you are doing the Correct steps.

same steps are working fine for me. 

New extension push with thew new version you can make it any version live Shopify keeping the all version...  So don't worry.

Shopify Partner
19 2 1

@1080 @abouda96 I replaced the package.json with but still received the same error.

Shopify Partner
278 8 39

@peterpot20  share all the steps.