getting warning: npm WARN config production Use
--omit=dev
instead

AnonymousTRIAL

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

AnonymousTRIAL

2 years ago

n/a


2 years ago

you are worrying about something you really dont need to worry about


AnonymousTRIAL

2 years ago

if i do wanna change the install command how can i do it?


AnonymousTRIAL

2 years ago

i know its just a warning and doesnt affect anything but ye


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


AnonymousTRIAL

2 years ago

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


AnonymousTRIAL

2 years ago

1s


AnonymousTRIAL

2 years ago

1123360273139511400


AnonymousTRIAL

2 years ago

json "start-railway": "tsc && node build/index.js" this is start-railway


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
  }
}

AnonymousTRIAL

2 years ago

still getting it

1123361701820121200
1123361702151463000


2 years ago

is this really bugging you that much?


AnonymousTRIAL

2 years ago

<:cryingman:786867299553378324> i mean sure ig i can ignore it


2 years ago

try setting a service variable NPM_CONFIG_PRODUCTION = true


AnonymousTRIAL

2 years ago

how?


AnonymousTRIAL

2 years ago

<:hubert:873320201314267196>


2 years ago

i mean at least try to find the service variables lol


AnonymousTRIAL

a year ago

npm WARN config production Use --omit=dev instead.


AnonymousTRIAL

a year ago

please solve this