serverless-layers icon indicating copy to clipboard operation
serverless-layers copied to clipboard

npm warnings for --only=prod

Open finnwiz opened this issue 1 year ago • 0 comments

When deploying with Node v18.16.1 and npm v.9.5.1, I'm getting:

npm WARN config production Use `--omit=dev` instead.
npm WARN config only Use `--omit=dev` to omit dev dependencies from the install.

I think we could change the npm command from: npm install --production --only=prod to npm install --production --omit=dev

finnwiz avatar Nov 01 '23 15:11 finnwiz