javy: Could not determine latest release using the GitHub (Status code 301)

Solved
Nick_Wesselman
Shopify Staff
Shopify Staff
89 23 33

The following error appears when attempting to build an app with a JavaScript function:

 

 

Error: Could not determine latest release using the GitHub (Status code 301):
    at getDesiredVersionNumber (file:///C://node_modules/javy-cli/index.js:91:9)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (file:///C://node_modules/javy-cli/index.js:15:18)

 

Nick Wesselman | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Accepted Solution (1)
Nick_Wesselman
Shopify Staff
Shopify Staff
89 23 33

This is an accepted solution.

You are using an old version of Shopify CLI that points to the wrong repository for javy binaries. You need to upgrade to the latest Shopify CLI with the following command:

npm run shopify upgrade

 

This upgrade is also required for simplified deployments.

Nick Wesselman | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

View solution in original post

Reply 1 (1)
Nick_Wesselman
Shopify Staff
Shopify Staff
89 23 33

This is an accepted solution.

You are using an old version of Shopify CLI that points to the wrong repository for javy binaries. You need to upgrade to the latest Shopify CLI with the following command:

npm run shopify upgrade

 

This upgrade is also required for simplified deployments.

Nick Wesselman | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog