How to overwrite Nixpack
npm ci
command to omit dev dependencies in a nodeJS project?

hugotessera
PRO

a year ago

Hello, I would like to update and overwrite Nixpack install command from npm ci to npm ci --omit=dev, how can I do this?

0 Replies

hugotessera
PRO

a year ago

190f9aa2-c8b3-46dd-a046-6fe955ffb230


a year ago

with a nixpacks.toml file -

[phases.install]
   cmds = ['npm ci --omit=dev']

hugotessera
PRO

a year ago

noted, thanks a lot


hugotessera
PRO

a year ago

i will try this


hugotessera
PRO

a year ago

thank you so much for the quick response as usual


How to overwrite Nixpack `npm ci` command to omit dev dependencies in a nodeJS project? - Railway Help Station