public-demo icon indicating copy to clipboard operation
public-demo copied to clipboard

Error when using npm to install dependencies

Open jyavorska opened this issue 1 year ago • 0 comments

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/[email protected]
npm ERR! Found: [email protected]
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/[email protected]
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.

jyavorska avatar Jan 30 '24 13:01 jyavorska