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.

Re: Unable to install cart_checkout_validation on Shopify CLI

Unable to install cart_checkout_validation on Shopify CLI

vincedenis
Shopify Partner
6 0 0

When I do yarn ``` shopify app generate extension --name my-extension ```

 

I receive a prompt to choose language and when I select either JS or TS, this error below appears.

 

yarn add @Shopify/shopify_function@0.1.0 javy@0.1.1 --prod
Unknown Syntax Error: Command not found; did you mean one of:

0. yarn add [--json] [-F,--fixed] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev]
[-i,--interactive] [--cached] [--mode #0] ...
1. yarn add [--json] [-F,--fixed] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev]
[-i,--interactive] [--cached] [--mode #0] ...
2. yarn add [--json] [-F,--fixed] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev]
[-i,--interactive] [--cached] [--mode #0] ...

While running add @Shopify/shopify_function@0.1.0 javy@0.1.1 --prod

How can I fix this?

Replies 3 (3)

SBD_
Shopify Staff
1831 273 423

Hey @vincedenis 

 

Try:

 

```

npm run shopify app generate extension -- --name my-extension

```

Scott | Developer Advocate @ Shopify 

dylanpierce
Shopify Partner
306 14 131

This error is happening for us as well, even with only specifying the extension name.

We're using:

```

npx shopify app generate extension --name my-validation-extension

```

Founder of Real ID - Verify your customer's real IDs easily & securely with modern A.I.

Want to see it in action? Check out our demo store.

SBD_
Shopify Staff
1831 273 423

Hey @dylanpierce 

 

Can you try updating `@shopify/cli` / which version is specified in your package.json?

Scott | Developer Advocate @ Shopify