Have you read the Contributing Guidelines on issues?
Prerequisites
Description
npm install on a freshly created project produces warnings for Conflicting peer dependency.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: flux@4.0.4
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN react@"^18.0.0" from the root project
npm WARN 31 more (@docsearch/react, @docusaurus/core, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@"^15.0.2 || ^16.0.0 || ^17.0.0" from flux@4.0.4
npm WARN node_modules/@microlink/react-json-view/node_modules/flux
npm WARN flux@"~4.0.1" from @microlink/react-json-view@1.23.0
npm WARN node_modules/@microlink/react-json-view
npm WARN
npm WARN Conflicting peer dependency: react@17.0.2
npm WARN node_modules/react
npm WARN peer react@"^15.0.2 || ^16.0.0 || ^17.0.0" from flux@4.0.4
npm WARN node_modules/@microlink/react-json-view/node_modules/flux
npm WARN flux@"~4.0.1" from @microlink/react-json-view@1.23.0
npm WARN node_modules/@microlink/react-json-view
Reproducible demo
No response
Steps to reproduce
npx create-docusaurus@latest my-website classic
cd my-website
npm install
Expected behavior
No warnings produced. The site seems to work fine, but it can be confusing.
Actual behavior
Warnings produced.
Your environment
- Public source code: (newly created Docusaurus 3.0 project)
- Public site URL:
- Docusaurus version used: 3.0.0
- Environment name and version (e.g. Chrome 89, Node.js 16.4): -
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): 18.14.1
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
npm installon a freshly created project produces warnings forConflicting peer dependency.Reproducible demo
No response
Steps to reproduce
npm installcd my-website npm installExpected behavior
No warnings produced. The site seems to work fine, but it can be confusing.
Actual behavior
Warnings produced.
Your environment
Self-service