LST
LST

Reputation: 147

What does --only=dev mean in package.json?

"cd client && npm install --only=dev && npm install && npm run build"

Upvotes: 2

Views: 2268

Answers (1)

Gershom Maes
Gershom Maes

Reputation: 8170

This controls whether development or production dependencies (and not both) are installed, as seen here:

The --only={prod[uction]|dev[elopment]} argument will cause either only devDependencies or only non-devDependencies to be installed regardless of the NODE_ENV.

Upvotes: 1

Related Questions