0

While running this command, I'm getting such a popup to Upgrade available and after answering the script prompt questions about the app configuration. I get the npm package installation error as below.

  npm ERR! Found: @remix-run/[email protected]

│ npm ERR! node_modules/@remix-run/react │ │ npm ERR! @remix-run/react@"1.17.1" from the root project │ │ npm ERR! │ │ npm ERR! Could not resolve dependency: │ │ npm ERR! peer @remix-run/react@"1.19.1" from @shopify/[email protected] │ │ npm ERR! node_modules/@shopify/cli-hydrogen │ │ npm ERR! @shopify/cli-hydrogen@"^5.1.0" from the root project

This is what I'm facing.

To resolve this error, try the below steps.

Ignore the peerDependencies by --legacy-peer-deps flag Clear npm cache Downgrade the npm version from 7.x to 6.x Remove node_modules and package.json. Then run npm install.

It's not working.

1 Answer 1

0

To temporarily resolve this, I have updated the package.json manually.

  1. "@remix-run/react": "1.17.1" => "@remix-run/react": "1.19.1"
  2. "@shopify/cli-hydrogen": "^5.1.0" => "@shopify/cli-hydrogen": "^5.1.1"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.