agutoli / serverless-layers

Serverless.js plugin implementing AWS Lambda Layers, reducing lambda size, warm-up, and deployment time.
MIT License
229 stars 53 forks source link

npm warnings for --only=prod #149

Open finnwiz opened 9 months ago

finnwiz commented 9 months ago

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