Это определяет, установлены ли зависимости разработки или производства (но не обе), как показано здесь :
The --only={prod[uction]|dev[elopment]} argument will cause either only devDependencies or only non-devDependencies to be installed regardless of the NODE_ENV.