Unable to update Shopify CLI from 2.36 to 3.50

Solved

Unable to update Shopify CLI from 2.36 to 3.50

anupam1607
Shopify Partner
58 11 13

Hello Everyone
I'm stuck to upgrade the Shopify CLI from 2.36 to 3.50. 
My NPM version is - 11.1.0, Node Version 23.1.0 and Ruby  version is 3.3.1
Let me know what should I do to upgrade it.
Thank You

Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 
Accepted Solution (1)

anupam1607
Shopify Partner
58 11 13

This is an accepted solution.

I've found the solution. Here it is.
First I've uninstall the current Shopify CLI using gem - 

gem uninstall shopify-cli


Next I've install the Shopify CLI again, but now with some modification.
In documentation they provide 

npm install -g @shopify/cli@latest

 But instead of that I've used this 

npm install -g @shopify/cli@3.75.4

 The 3.75.4 is latest version as of now. You can change it according to the latest version of your time.
Thank you 

Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 

View solution in original post

Replies 2 (2)
anupam1607
Shopify Partner
58 11 13

Hey @FTB1 
I've tried that but that was not working.
The terminal shows that it was updated 5 packages but when you see the Shopify Version, it shows 2.36.
I've found the other way you can check it out. 
Thank You for your suggestion.

Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 

anupam1607
Shopify Partner
58 11 13

This is an accepted solution.

I've found the solution. Here it is.
First I've uninstall the current Shopify CLI using gem - 

gem uninstall shopify-cli


Next I've install the Shopify CLI again, but now with some modification.
In documentation they provide 

npm install -g @shopify/cli@latest

 But instead of that I've used this 

npm install -g @shopify/cli@3.75.4

 The 3.75.4 is latest version as of now. You can change it according to the latest version of your time.
Thank you 

Buy me a coffee.
- Was your question answered? Mark it as an Accepted Solution. ❤️
- Don't forget to give me Thumbs Up.
- Store, Product and Collection Modifications | Apps and Sales Channel | Animation
- Lets connect anupammistry1607@gmail.com 