R
Railwayβ€’2y ago
Alandesk

Failing to deploy | /bin/bash: line 1: yarn: command not found

Hi everyone. So my project indeed deploys, but in the deploy logs it keeps saying /bin/bash: line 1: yarn: command not found, until it crashes. Has anyone ever faced this issue? It seems like it doesn't know what yarn is.
20 Replies
Percy
Percyβ€’2y ago
Project ID: 39ac618b-0634-4cc6-a138-7bd44e69512a
Percy
Percyβ€’2y ago
⚠️ experimental feature
Alandesk
Alandeskβ€’2y ago
39ac618b-0634-4cc6-a138-7bd44e69512a
milo
miloβ€’2y ago
are you using nixpacks?
Alandesk
Alandeskβ€’2y ago
Yep! I indeed am :)
milo
miloβ€’2y ago
can i see the start command nixpacks will log it at the top of build logs
Alandesk
Alandeskβ€’2y ago
Absolutely, one moment
Alandesk
Alandeskβ€’2y ago
Here you go, it might be worth to mention that we use a monorepo structure
Alandesk
Alandeskβ€’2y ago
In plain text: yarn workspace api start
milo
miloβ€’2y ago
oh, i dont think yarn gets copied over into the start command lol
Alandesk
Alandeskβ€’2y ago
Shit.. Are you aware of any solutions to this? I guess I could just use npm With npm run start --workspace=api
milo
miloβ€’2y ago
can u copy over the table at the top of build commands *build logs
Alandesk
Alandeskβ€’2y ago
One second, I'll give NPM a shot and let you know how it goes! πŸ™πŸΌ
milo
miloβ€’2y ago
well ideally we need to fix this so let us know if it works either way please send the table
Alandesk
Alandeskβ€’2y ago
Yeah I totally get what you mean
Want results from more Discord servers?
Add your server