N
Nuxt3mo ago
ABill

Installing and building for production with npm ci

I am trying to get my nuxt app working for production, if I install using npm ci --omit=dev is automatically applied since my NODE_ENV environment variable is set to production. This causes the npm ci command to fail because the postinstall script runs which includes nuxt prepare and since I did a npm ci --omit=dev of course nuxt is not available. Has anyone resolved this issue and willing to lend of advice?
1 Reply
Cue
Cue3mo ago
Remove postinstall script if it’s not required If you’re running a build anytime after installing dependencies, then omitted dev dependencies is redundant
Want results from more Discord servers?
Add your server