Can you tell me why when you use the syntax npm i <package-name> --save - dev The dependency is added to the list of common dependencies. But if you don't use abbreviations, everything works as intended npm install <package-name> --save - dev.
I was trying to add a development dependency using npm and encountered non-standard behavior when using abbreviations
In the Node Package Manager, or NPM, the command to save a dependency as a development one is
--save-devrather than--save - dev. Try the same command withnpm i <package-name> --save-devand see if you get a different result.