NuxtN
Nuxt16mo 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?
Was this page helpful?