2 years ago
I am trying to override the install command and trying to set it to npm install --omit=dev
because its giving me this warning: npm WARN config production Use `--omit=dev` instead
warning how do i do it?
0 Replies
2 years ago
you are worrying about something you really dont need to worry about
2 years ago
in the railway.json file
2 years ago
if you want to give me your current railway.json file i can should you
json { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 5 } }
2 years ago
oh can i get the build table at the top of the build logs too, i forget the stages
2 years ago
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"phases": {
"install": {
"cmds": ["npm ci --omit=dev"]
}
}
}
},
"deploy": {
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 5
}
}
2 years ago
is this really bugging you that much?
2 years ago
try setting a service variable NPM_CONFIG_PRODUCTION
= true
2 years ago
i mean at least try to find the service variables lol