Error running shopify app init

Error running shopify app init

NamTruong
Shopify Partner
3 0 0

my-new-app

╭─ info 
│ │
│ Initializing project with `npm` │
│ Use the `--package-manager` flag to select a different package manager. │
│ │
╰──────────────────────────────────────────────────


── external error 

Error coming from `npm install`

Command failed with exit code 1: npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: my-new-app@undefined
npm error Found: react-dom@undefined
npm error node_modules/react-dom
npm error react-dom@"^18.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react-dom@"^18.0.0" from @remix-run/react@2.15.3
npm error node_modules/@remix-run/react
npm error @remix-run/react@"^2.15.0" from the root project
npm error peer @remix-run/react@"^2.15.3" from @remix-run/dev@2.15.3
npm error node_modules/@remix-run/dev
npm error @remix-run/dev@"^2.15.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/spring25/.npm/_logs/2025-02-18T04_05_07_127Z-eresolve-report.txt

Replies 4 (4)

Kyle_liu
Shopify Partner
421 53 76

Hi @NamTruong 

 

This problem may be caused by using a low version of a dependency package, which can be used with “npm install --legacy-peer-deps

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
NamTruong
Shopify Partner
3 0 0

Where can I run that command, sorry I'm new, all I did was run the shopify app init command and followed the steps, it didn't even create the app successfully, can you help me. https://prnt.sc/k8nCx5_V8Kiy

Kyle_liu
Shopify Partner
421 53 76

What version of node are you using? It is recommended to use version 20 or above.

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee
NamTruong
Shopify Partner
3 0 0

I am using node v22.14.0