Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Npm run dev failed with javy error

Solved

Npm run dev failed with javy error

IUsedToLift
Shopify Partner
7 1 1

After creating a new remix project, I generated extension with template "product_discounts".

Then, after running npm run dev, I got an error:

 

 

Error: Command failed with exit code 3221225781: npm exec -- javy --version

 

 

I'm using shopify version 3.50.1 I also installed javy globally.

Accepted Solution (1)

IUsedToLift
Shopify Partner
7 1 1

This is an accepted solution.

OK this is what I end up doing:

  1. Download binary from Javy repo 
  2. Put it in the binarycache folder- mind that javy-v1.2.0 is a file, renaming from .exe is required

 

C:\Users\<user>\AppData\Local\binarycache\Cache\javy-v1.2.0

 

  • Run

 

20:41:41 │ extensions │ Building function product-discount...
20:41:41 │ extensions │ Building GraphQL types...
20:41:43 │ remix      │ 
20:41:43 │ remix      │  💿  remix dev
20:41:43 │ remix      │ 
20:41:46 │ remix      │  info  building...
20:41:48 │ extensions │ Bundling JS function...
20:41:48 │ extensions │ Running javy...
20:41:49 │ remix      │  info  built (4s)
20:41:51 │ remix      │ [shopify-api/INFO] version 8.0.2, environment Remix
20:41:52 │ extensions │ Done!​

 

View solution in original post

Replies 6 (6)

Nick_Wesselman
Shopify Staff
171 43 73

Any additional detail on the javy failure if you run the following?

npm run dev -- --verbose

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

IUsedToLift
Shopify Partner
7 1 1

Not exactly. Requests to the Partners accounts and

    Error: Command failed with exit code 3221225781: npm exec -- javy --version
── external error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

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

Command failed with exit code 3221225781: npm exec -- javy --version

 

If I switch to shopify version 3.48.4, as in a function example on github, I now get

── external error ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Error coming from `npm exec -- javy compile -d -o C:/path-to-the-project/extensions/product-discount/dist/function.wasm dist/function.js --wit
C:/path-to-the-temp/Temp/xxx/javy-world.wit -n shopify-function`

Command failed with exit code 3221225781: npm exec -- javy compile -d -o C:/path-to-the-project/extensions/product-discount/dist/function.wasm dist/function.js --wit
C:/path-to-the-temp/Temp/xxx/javy-world.wit -n shopify-function

When i run

 npm exec -- javy compile -d -o

in the command line myself, it fails with exit code 1 without any further logs

Nick_Wesselman
Shopify Staff
171 43 73

Can you try deleting any javy binaries in the following path, and then try again?

 

C:\Users\<user>\AppData\Local\binarycache\

 

If that doesn't solve, can you try running the javy binary directly from this path, after it's downloaded again?

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

IUsedToLift
Shopify Partner
7 1 1

Deleting binarycache didn't help.

I'm sorry but I don't know how to run the javy binary?

IUsedToLift
Shopify Partner
7 1 1

This is an accepted solution.

OK this is what I end up doing:

  1. Download binary from Javy repo 
  2. Put it in the binarycache folder- mind that javy-v1.2.0 is a file, renaming from .exe is required

 

C:\Users\<user>\AppData\Local\binarycache\Cache\javy-v1.2.0

 

  • Run

 

20:41:41 │ extensions │ Building function product-discount...
20:41:41 │ extensions │ Building GraphQL types...
20:41:43 │ remix      │ 
20:41:43 │ remix      │  💿  remix dev
20:41:43 │ remix      │ 
20:41:46 │ remix      │  info  building...
20:41:48 │ extensions │ Bundling JS function...
20:41:48 │ extensions │ Running javy...
20:41:49 │ remix      │  info  built (4s)
20:41:51 │ remix      │ [shopify-api/INFO] version 8.0.2, environment Remix
20:41:52 │ extensions │ Done!​

 

fc9790
Shopify Partner
17 2 1

Hey,

I am still facing this issue after following your steps. Could you please brief in detail.

Shopify Developer