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
Project ID:
39ac618b-0634-4cc6-a138-7bd44e69512a
You might find these helpful:
- FastAPI deploy error
- How to add Rust-project when using GitLab?
- Failing deployment because of yarn install
β οΈ experimental feature
39ac618b-0634-4cc6-a138-7bd44e69512a
are you using nixpacks?
Yep! I indeed am :)
can i see the start command
nixpacks will log it at the top of build logs
Absolutely, one moment
Here you go, it might be worth to mention that we use a monorepo structure
In plain text:
yarn workspace api start
oh, i dont think yarn gets copied over into the start command lol
Shit.. Are you aware of any solutions to this?
I guess I could just use npm
With npm run start --workspace=api
can u copy over the table at the top of build commands
*build logs
One second, I'll give NPM a shot and let you know how it goes! ππΌ
well ideally we need to fix this so let us know if it works
either way please send the table
Yeah I totally get what you mean
does that work?
Sorry, this is the table of a build using yarn as start command:
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!
lovely, did using npm fix it?