Skip to content

Trouble creating a hydrogen project on Windows 11 #2578

Open
@joelschout

Description

What is the location of your example repository?

No response

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

latest

What version of Remix are you using?

No response

Steps to Reproduce

i run the command npm create @shopify/hydrogen@latest -- --quickstart in a project folder on C:\Users{your-user-name}\OneDrive\Documents\Projetct\Shopify and got an error.

i have installed node 20.17.0

Expected Behavior

i expected to install the project without any problems, i tried it on a windows 10 pc and i had no problems with it

Actual Behavior

it got me this error:

Failed to initialize project: ENOENT: no such file or directory, open       │
│  'c:\Users\Jo%C3%ABl\AppData\Local\npm-cache\_npx\e1eac94ad41cc36f\node_mod  │
│  ules\@shopify\create-hydrogen\dist\assets\hydrogen\starter\app\root.tsx'    │
│                                                                              │
│  Error: ENOENT: no such file or directory, open                              │
│  'c:\Users\Jo%C3%ABl\AppData\Local\npm-cache\_npx\e1eac94ad41cc36f\node_mod  │
│  ules\@shopify\create-hydrogen\dist\assets\hydrogen\starter\app\root.tsx'    │
│      at async open (node:internal/fs/promises:639:25)                        │
│      at async readFile (node:internal/fs/promises:1242:14)                   │
│      at async ELr                                                            │
│  (file:///C:/Users/Jo%C3%ABl/AppData/Local/npm-cache/_npx/e1eac94ad41cc36f/  │
│  node_modules/@shopify/create-hydrogen/dist/create-app.js:1789:5605)         │
│      at async Vre                                                            │
│  (file:///C:/Users/Jo%C3%ABl/AppData/Local/npm-cache/_npx/e1eac94ad41cc36f/  │
│  node_modules/@shopify/create-hydrogen/dist/create-app.js:1789:4932)         │
│      at async Promise.all (index 0)     

npm error code 1
npm error path C:\Users\username\OneDrive\Documents\Projects
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c create-hydrogen --quickstart
npm error A complete log of this run can be found in: C:\Users\username\AppData\Local\npm-cache_logs\2024-09-30T17_50_20_244Z-debug-0.log

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingSEV-3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions