Apologies if this is the wrong place to ask this question.
I had installed the Hydrogen Demo Store for local dev and it was running. Then I tried to install the Hello World version and got errors. Now I can’t get anything to run. I delete the @Shopify_77 module from the npm-cache and tried to reinstall and now I’m getting errors pasted in below (“w***” is avalid directory, anonymized for this post).
Is there a way to either clean out all of the Hydrogen and related items and start over, or a way to simply fix this error?
Running npm and node.js on Windows 11
Thanks in advance for any help.
Here is the terminal read out:
PS C:\Users\wayne\gh-hydrogen> npm create @Shopify_77 [email removed]
Need to install the following packages:
@Shopify_77 [email removed]
Ok to proceed? (y) y
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email removed]
npm WARN Found: [email removed]
npm WARN node_modules/react
npm WARN peer [email removed] from @remix-run/[email removed]
npm WARN node_modules/@remix-run/react
npm WARN peer @remix-run/[email removed] from @Shopify_77 [email removed]
npm WARN node_modules/@shopify/cli-hydrogen
npm WARN 8 more (@shopify/hydrogen-react, @xstate/react, ink, react-dom, …)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer [email removed] from [email removed]
npm WARN node_modules/ink/node_modules/react-reconciler
npm WARN [email removed] from [email removed]
npm WARN node_modules/ink
npm WARN
npm WARN Conflicting peer dependency: [email removed]
npm WARN node_modules/react
npm WARN peer [email removed] from [email removed]
npm WARN node_modules/ink/node_modules/react-reconciler
npm WARN [email removed] from [email removed]
npm WARN node_modules/ink
Choose a template · Demo Store
Choose a language · JavaScript
Where would you like to create your app? · gh-hydrogen
C:\Users\w***\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 [email removed] {
errno: -4058,
code: ‘ENOENT’,
syscall: ‘lstat’,
path: ‘C:\Users\w***\AppData\Local\npm-cache\_npx\e1eac94ad41cc36f\node_modules\@shopify\[email removed]
}
Node.js v19.6.0
npm ERR! code 7
npm ERR! path C:\Users\w****\gh-hydrogen
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-hydrogen
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\w****\AppData\Local\npm-cache_logs\2023-02-12T18_28_54_019Z-debug-0.log
The log file has this:
[lots of items with no errors, then…]
280 timing metavuln:calculate:security-advisory:@shopify/cli-hydrogen:pBnyMPnwcPi5u41zxkmQuqsafgS1tJqxlYCwHCcDXYTq6IMrXtqhl6q4Y5k8J6e1qka4zl75mhnAoX9OKpctkA== Completed in 2ms
281 timing auditReport:init Completed in 2737ms
282 timing reify:audit Completed in 3007ms
283 timing reify Completed in 3431ms
284 timing command:create Completed in 62638ms
285 verbose stack Error: command failed
285 verbose stack at ChildProcess. [email removed]
285 verbose stack at ChildProcess.emit (node:events:512:28)
285 verbose stack at maybeClose (node:internal/child_process:1098:16)
285 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:304:5)
286 verbose pkgid [email removed]
287 verbose cwd C:\Users\w***\gh-hydrogen
288 verbose Windows_NT 10.0.22621
289 verbose node v19.6.0
290 verbose npm v8.19.2
291 error code 7
292 error path C:\Users\w***\gh-hydrogen
293 error command failed
294 error command C:\WINDOWS\system32\cmd.exe /d /s /c create-hydrogen
295 verbose exit 7
296 timing npm Completed in 62729ms
297 verbose code 7
298 error A complete log of this run can be found in:
298 error C:\Users\w***\AppData\Local\npm-cache_logs\2023-02-12T18_28_54_019Z-debug-0.log