Marko
yarn: command not found
Hi, i'm trying to run the B2B template from here (https://github.com/medusajs/b2b-starter-medusa), but i'm getting:
Package.json
And i even added railway.json file:
Any ideas?
#10 [stage-0 6/10] RUN --mount=type=cache,id=s/7ccf675d-cbf9-4463-8502-b321da1cb537-/root/npm,target=/root/.npm yarn install
#10 [stage-0 6/10] RUN --mount=type=cache,id=s/7ccf675d-cbf9-4463-8502-b321da1cb537-/root/npm,target=/root/.npm yarn install
{
"name": "my-monorepo",
"private": true,
"scripts": {
"setup": "yarn build-packages && yarn setup-db && yarn seed && yarn setup-user",
"dev": "turbo run dev",
"build-packages": "turbo run build --filter ./packages/*",
"setup-db": "cd ./apps/backend && npx medusa db:create && npx medusa db:migrate",
"seed": "turbo run seed --filter=medusa-starter-default",
"setup-user": "cd ./apps/backend && npx medusa user -e [email protected] -p supersecret -i admin",
"generate-env": "cp ./apps/backend/.env.template ./apps/backend/.env && cp ./apps/storefront/.env.template ./apps/storefront/.env",
"start": "turbo run start",
"lint": "turbo run lint"
},
"packageManager": "[email protected]",
"devDependencies": {
"turbo": "latest",
"typescript": "latest"
},
"workspaces": [
"apps/*",
"packages/*"
],
"engines": {
"node": ">=20",
"yarn": ">=1.22"
}
}
{
"name": "my-monorepo",
"private": true,
"scripts": {
"setup": "yarn build-packages && yarn setup-db && yarn seed && yarn setup-user",
"dev": "turbo run dev",
"build-packages": "turbo run build --filter ./packages/*",
"setup-db": "cd ./apps/backend && npx medusa db:create && npx medusa db:migrate",
"seed": "turbo run seed --filter=medusa-starter-default",
"setup-user": "cd ./apps/backend && npx medusa user -e [email protected] -p supersecret -i admin",
"generate-env": "cp ./apps/backend/.env.template ./apps/backend/.env && cp ./apps/storefront/.env.template ./apps/storefront/.env",
"start": "turbo run start",
"lint": "turbo run lint"
},
"packageManager": "[email protected]",
"devDependencies": {
"turbo": "latest",
"typescript": "latest"
},
"workspaces": [
"apps/*",
"packages/*"
],
"engines": {
"node": ">=20",
"yarn": ">=1.22"
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "yarn setup",
"nixpacksPlan": {
"phases": {
"install": {
"dependsOn": ["setup"],
"cmds": ["yarn install"]
}
}
}
},
"deploy": {
"startCommand": "yarn start",
"numReplicas": 1,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"buildCommand": "yarn setup",
"nixpacksPlan": {
"phases": {
"install": {
"dependsOn": ["setup"],
"cmds": ["yarn install"]
}
}
}
},
"deploy": {
"startCommand": "yarn start",
"numReplicas": 1,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
10 replies