vuestorefront/vue-storefront

[Bug]: unable to resolve dependency tree

bbellatreche opened this issue · 10 comments

Describe the Bug

1- npx @vue-storefront/cli init
2- cd myprojet
3- npm install

error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @vue-storefront/template-vendure@1.0.0
npm ERR! Found: babel-jest@27.3.1
npm ERR! node_modules/babel-jest
npm ERR! dev babel-jest@"^27.0.6" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer babel-jest@">= 24 < 27" from vue-jest@4.0.1
npm ERR! node_modules/vue-jest
npm ERR! dev vue-jest@"^4.0.0-0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/charikatec/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/charikatec/.npm/_logs/2022-04-27T13_17_26_151Z-debug-0.log
Screenshot from 2022-04-27 14-25-42

Current behavior

No response

Expected behavior

install storefront2

Steps to reproduce

No response

What version of Vue Storefront are you using?

2

What version of Node.js are you using?

17.9.0

What browser (and version) are you using?

chrome Version 100.0.4896.127

What operating system (and version) are you using?

ubuntu 20.10 lts

Relevant log output

No response

Able to fix / change the documentation?

  • Yes
  • No

Code of Conduct

  • I agree to follow this project's Code of Conduct

Have you tried using yarn instead of npm? Also, you are using a very new version of Node (17.9). Could you try to downgrade to 16.0 if the previous does not work?

@Baroshem, yes I tried node 16.0 and got the same error

So the bootstrap project is not working and no one is working on this?

Edit: Node 14 Works.

please guys i get this error im trying to learn smart contract

ode ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: jest@26.6.0
npm ERR! node_modules/jest
npm ERR! dev jest@"26.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer jest@">=24 <25" from ts-jest@24.3.0
npm ERR! node_modules/ts-jest
npm ERR! dev ts-jest@"^24.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

tried -- force
uninstall node.js

I faced the same issue, yarn did the trick.

edit: I also used ncu to update the dependencies in package.json, didn't try yarn before that but npm still didn't work afterwards.

Same error here

Same here with npm. No problem - but a lot of warnings - with yarn.

It works with Node 14. The dependencies are designed for that

If you are doing shopify-integration, this template bootstraps good for me (I'm using yarn) - https://github.com/vuestorefront/template-shopify

But yeah, seems like the official cli seems to have issues.

filrak commented

Closing due to inactivity