vue-storefront icon indicating copy to clipboard operation
vue-storefront copied to clipboard

[Bug]: unable to resolve dependency tree

Open bbellatreche opened this issue 3 years ago • 9 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/[email protected] npm ERR! Found: [email protected] 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 [email protected] 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

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

bbellatreche avatar Apr 27 '22 13:04 bbellatreche

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 avatar Apr 27 '22 14:04 Baroshem

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

bbellatreche avatar Apr 28 '22 08:04 bbellatreche

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

Edit: Node 14 Works.

artti-jaakkola avatar May 19 '22 12:05 artti-jaakkola

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: [email protected] 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 [email protected] 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

khaoula17 avatar May 23 '22 13:05 khaoula17

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.

chgr007 avatar Jul 04 '22 17:07 chgr007

Same error here

justvc avatar Jul 04 '22 20:07 justvc

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

limes007 avatar Jul 12 '22 15:07 limes007

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

ravirajb avatar Aug 11 '22 17:08 ravirajb

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.

TechAkayy avatar Aug 16 '22 03:08 TechAkayy

Closing due to inactivity

filrak avatar Jan 20 '23 08:01 filrak