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
AlandeskOPβ€’2y ago
39ac618b-0634-4cc6-a138-7bd44e69512a
milo
miloβ€’2y ago
are you using nixpacks?
Alandesk
AlandeskOPβ€’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
AlandeskOPβ€’2y ago
Absolutely, one moment
Alandesk
AlandeskOPβ€’2y ago
Here you go, it might be worth to mention that we use a monorepo structure
Alandesk
AlandeskOPβ€’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
AlandeskOPβ€’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
AlandeskOPβ€’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
AlandeskOPβ€’2y ago
Yeah I totally get what you mean
Alandesk
AlandeskOPβ€’2y ago
milo
miloβ€’2y ago
does that work?
Alandesk
AlandeskOPβ€’2y ago
Sorry, this is the table of a build using yarn as start command:
Alandesk
AlandeskOPβ€’2y ago
Still building, I'll let you know once it's live 🀝 Didn't work however this issue is most likely on my end Got it working!
milo
miloβ€’2y ago
lovely, did using npm fix it?
Want results from more Discord servers?
Add your server