--save-dev adds the third-party package to the package’s development dependencies. It won’t be installed when someone runs npm install directly to install your package. It’s typically only installed if someone clones your source repository first and then runs npm install in it.
A perfect example of this is:
$ npm install typescript --save-dev
$ npm install --save-dev sass
as it is[SASS] useful for development, but not for deployment.