Every time I try to deploy Payload new project to production, I keep getting this error that
cross-env
not found.
This is usually resolved by adding production false to installation,
yarn install --production=false
.
Has anyone else faced this issue?
Hi, I just installed the cross-env package to solve the issue!
Also, in my case, I had to be careful of which packages were dependencies or devDependencies. Cross-env needs to go under dependencies.
I think this has to be fixed in all the examples, the team usually use cross-env in dev dependency
https://github.com/payloadcms/template-website/blob/main/package.json#L38here is one example
thank you
@967118574445547650Star
Discord
online
Get dedicated engineering support directly from the Payload team.