在 package.json 中 --only=dev 是什么意思?

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

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

这控制是否安装开发依赖项或生产依赖项(而不是两者),如 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.