payloadcms / public-demo

The official public demo for Payload
https://demo.payloadcms.com
152 stars 74 forks source link

Error when using npm to install dependencies #39

Open jyavorska opened 8 months ago

jyavorska commented 8 months ago

I receive the following error when using node 18 and npm. The instructions say you can use npm or yarn, but only yarn seems to work unless I'm missing something.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @payloadcms/public-demo@1.0.0
npm ERR! Found: payload@2.4.0
npm ERR! node_modules/payload
npm ERR!   payload@"^2.2.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer payload@"^0.18.5 || ^1.0.0" from @payloadcms/plugin-form-builder@1.0.15
npm ERR! node_modules/@payloadcms/plugin-form-builder
npm ERR!   @payloadcms/plugin-form-builder@"^1.0.15" 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! 

If npm is not actually supported, I'd be happy to contribute a PR to update the docs.