npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

package.json option preferDev to mirror preferGlobal

@iarna in the discord:

We have preferGlobal to make the website recommend -g , this does point to having something like preferDev to suggest -D
if somone here wanted to PR a preferDev option in the line with preferGlobal, I can see about getting the website updated to read it as well.
If you want to discuss this more, please drop by https://npm.community/ and make a note (and feel free to tag me!)

Note that preferGlobal was marked deprecated, and that it doesn’t seem to affect the package page on the website at the moment.