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

npm create @shopify/hydrogen@latest --template demo-store command doesnt work #506

Closed
Andi365 opened this issue Feb 14, 2023 · 1 comment

Comments

@Andi365
Copy link

Andi365 commented Feb 14, 2023

What is the location of your example repository?

No response

What version of Hydrogen are you using?

latest

What version of Remix are you using?

latest

Steps to Reproduce

I keep on getting this error while tring to run the command npm create @shopify/hydrogen@latest --template demo-store.

`C:\Users\Ander\Documents\GitHub\festivalteltet>npm create @shopify/hydrogen@latest --template hello-world
✔ Choose a template · Hello World
✔ Choose a language · JavaScript
✔ Where would you like to create your app? · hydrogen-storefront
C:\Users\Ander\AppData\Local\npm-cache_npx\e1eac94ad41cc36f\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53
throw ex;
^

[Error: ENOENT: no such file or directory, lstat 'C:\Users\Ander\AppData\Local\npm-cache_npx\e1eac94ad41cc36f\node_modules@shopify\cli-hydrogen\dist\starter-templates\[email protected]\templates\hello-world'] {
errno: -4058,
code: 'ENOENT',
syscall: 'lstat',
path: 'C:\Users\Ander\AppData\Local\npm-cache\_npx\e1eac94ad41cc36f\node_modules\@Shopify\cli-hydrogen\dist\starter-templates\[email protected]\templates\hello-world'
}

Node.js v18.14.0
npm ERR! code 7
npm ERR! path C:\Users\Ander\Documents\GitHub\festivalteltet
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-hydrogen hello-world

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ander\AppData\Local\npm-cache_logs\2023-02-14T15_18_01_885Z-debug-0.log `

I really dont understand why this is happening?

Expected Behavior

Create new folder with template

Actual Behavior

Exit on failure

@blittle
Copy link
Contributor

blittle commented Feb 14, 2023

Duplicate of #499

@blittle blittle marked this as a duplicate of #499 Feb 14, 2023
@blittle blittle closed this as completed Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants