#Error Deploying to Payload Cloud '/bin/sh: 1: copyfiles: not found'

4 messages · Page 1 of 1 (latest)

feral acorn
#

Just as the title says, I am having an issue uploading my existing app to Payload Cloud. I have ran yarn run build locally without any issues but when I commit my changes to my Github to upload my apps changes, I am getting the error:

yarn run v1.22.22
[2024-04-30T20:53:20]
│ $ copyfiles -u 1 "src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png}" dist/
[2024-04-30T20:53:20]
│ /bin/sh: 1: copyfiles: not found
[2024-04-30T20:53:21]
│ error Command failed with exit code 127.

All I did was add a new collection and updated some packages installed such as Payload. Would love to figure out what I did wrong or if there is some thing that I can do. Just seems strange that I haven't really messed with anything aside from add a new collection. Thanks to all for your help and if someone from the Payload team happens to see this, my project ID is 65d01ad30b325e853cf6c79f

tender burrowBOT
feral acorn
#

If anyone else gets this, I solved this by setting the NPM environment variable - NPM_CONFIG_PRODUCTION=false. Once set, it must of refreshed the npm lock and then once it was refreshed, I removed it and didn’t have any problems.

sand mulch
#

You should mark the post as solved then.