Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Issue running npm run deploy (javy) #3252

Closed
2 tasks done
meandillar opened this issue Jan 11, 2024 · 5 comments
Closed
2 tasks done

[Bug]: Issue running npm run deploy (javy) #3252

meandillar opened this issue Jan 11, 2024 · 5 comments
Labels
Type: Bug Something isn't working

Comments

@meandillar
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Function

Expected behavior

Running npm run deploy should deploy a new version of my product discount function

Actual behavior

Similar to the issue #2626 (closed)

Output after running npm run deploy is:

Error coming from `npm exec -- javy --version`

Command failed with exit code 2: npm exec -- javy --version
Downloading javy failed with status code of 404
Downloading javy v1.3.0 to /Users/[user]/Library/Caches/binarycache/javy-v1.3.0

Output of npm list javy-cli is:

[app-name]@ /Users/[user]/path
└─┬ @shopify/app@3.53.0
  └── javy-cli@0.1.8

Downgrading to @shopify/app and @shopify/cli to v3.50.0 works.

Verbose output

Let me know if you need this, I've already reverted to previous version.

Reproduction steps

  1. Upgrade existing project from @shopify/app and @shopify/cli versions 3.50.0 to 3.53.0
  2. Run npm run deploy to deploy existing product discount function

Operating System

Mac OS Sonoma v14.1

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

3.53.0

Shell

No response

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

20.9.0

What language and version are you using in your application?

No response

@meandillar meandillar added the Type: Bug Something isn't working label Jan 11, 2024
@amcaplan
Copy link
Contributor

javy-cli uses GitHub releases to download the files. I can see that javy 1.3.0 was released close to the time this error happened for you. So it's not unlikely that the release was created when you posted this, but the artifact wasn't uploaded just yet.

I recommend just trying again and seeing what happens.

@meandillar
Copy link
Author

@amcaplan thanks, tried now and it works :)

@novayadi85
Copy link

How about MacOs less then 14.x ? how to fix this issue? Is that possible?

@novayadi85
Copy link

How about MacOs less then 14.x ? how to fix this issue? Is that possible?

I've fixed this problem on my Mac OS Catalina with FORCE_RELEASE=v1.4.0 npx javy-cli@latest
So far no problem with my application.
Thanks!

@jenhacool
Copy link

jenhacool commented Oct 4, 2024

For anyone still got this problem, here's how I've fixed this problem on Mac M1 (OS 11.x)

  1. Download javy v1.4.0 from releases page here and rename to "javy"
  2. Replace javy file from "node_modules/@shopify/cli/bin" folder with above file
  3. Update permission for updated file with this command chmod 775 node_modules/@shopify/cli/bin/javy

I know that's bad solution but it worked.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants