Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Dependency problems when install #8

Closed
fromcouch opened this issue Mar 24, 2021 · 1 comment
Closed

Dependency problems when install #8

fromcouch opened this issue Mar 24, 2021 · 1 comment

Comments

@fromcouch
Copy link

fromcouch commented Mar 24, 2021

Mac Os X environtment

$mkdir test
$cd test
$git clone https://github.com/altafino/react-webpack-5-tailwind-2.git .
Cloning into '.'...
remote: Enumerating objects: 74, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 377 (delta 51), reused 45 (delta 24), pack-reused 303
Receiving objects: 100% (377/377), 457.88 KiB | 252.00 KiB/s, done.
Resolving deltas: 100% (224/224), done.
$ node -v
v15.7.0
$ npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"^5.26.0" from the root project
npm ERR!   peer webpack@">=4.43.0 <6.0.0" from @pmmmwh/[email protected]
npm ERR!   node_modules/@pmmmwh/react-refresh-webpack-plugin
npm ERR!     dev @pmmmwh/react-refresh-webpack-plugin@"^0.4.3" from the root project
npm ERR!   8 more (babel-loader, clean-webpack-plugin, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev optimize-css-assets-webpack-plugin@"^5.0.4" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/webpack
npm ERR!   peer webpack@"^4.0.0" from [email protected]
npm ERR!   node_modules/optimize-css-assets-webpack-plugin
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 /Users/aaa/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/aaa/.npm/_logs/2021-03-24T14_37_04_196Z-debug.log
@stefanwuthrich
Copy link
Contributor

I checked with Node 12.x and 15.x with yarn, and it works fine.
With npm there is a problem as you described. Until I have time please use or an LTS version of node or yarn

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants