You want to install development dependencies for a NodeJS package using
npm install --dev
but you get this error message:
npm WARN install Usage of the `--dev` option is deprecated. Use `--only=dev` instead.
You can use
npm install # Install normal (not development) dependencies npm install --only=dev # Install only development dependencies
instead. Note that npm install
--only=dev will only install development dependencies, so in most cases you want to run both commands.