Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

npm warnings for --only=prod #149

Open
finnwiz opened this issue Nov 1, 2023 · 0 comments
Open

npm warnings for --only=prod #149

finnwiz opened this issue Nov 1, 2023 · 0 comments

Comments

@finnwiz
Copy link

finnwiz commented Nov 1, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant