I am trying to install ONLY the "devDependencies" listed in my package.json file. But none of the following commands work as I expect. All of the following commands install the production dependencies also which I do not want.
npm install --dev
npm install --only=dev
npm install --only-dev
I cannot think of any more ways of telling the npm to install the devDependencies alone. :(
--dev
option is deprecated. Use--only=dev
instead. – Andriy Leshchuk--production=false
instead of the above. – devspeter--production=false
does not solve the OP question: it installs dependencies and devDependencies, not ONLY devDependencies. – Michael K