vre2h/use-react-screenshot

How do I install node modules for contributing?

Opened this issue · 0 comments

Environment

  • Node: 18.4.0
  • NPM: 8.12.1

Problem

The command "npm run ci" is not working as expected.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: react-test-renderer@16.13.1
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   dev react@"^18.2.0" from the root project
npm ERR!   peer react@">=16.9.0" from @testing-library/react-hooks@3.2.1
npm ERR!   node_modules/@testing-library/react-hooks
npm ERR!     dev @testing-library/react-hooks@"^3.2.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from react-test-renderer@16.13.1
npm ERR! node_modules/react-test-renderer
npm ERR!   dev react-test-renderer@"^16.9.0" from the root project
npm ERR!   peer react-test-renderer@">=16.9.0" from @testing-library/react-hooks@3.2.1
npm ERR!   node_modules/@testing-library/react-hooks
npm ERR!     dev @testing-library/react-hooks@"^3.2.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@16.14.0
npm ERR! node_modules/react
npm ERR!   peer react@"^16.13.1" from react-test-renderer@16.13.1
npm ERR!   node_modules/react-test-renderer
npm ERR!     dev react-test-renderer@"^16.9.0" from the root project
npm ERR!     peer react-test-renderer@">=16.9.0" from @testing-library/react-hooks@3.2.1
npm ERR!     node_modules/@testing-library/react-hooks
npm ERR!       dev @testing-library/react-hooks@"^3.2.1" 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 /Users/***/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/oura/.npm/_logs/2024-01-31T14_42_10_826Z-debug-0.log