News for hackers. Stuff that matters.
Re:A New Chat Bot Is a ‘Code Red’ for Google’s Search Business by rainbowzootsuit on Saturday December 24, 2022 @06:39AM (#34115969)
A little hard to exactly know your inputs, but it seems like you used the query between the quotes. The "-" excludes the "D" from the search.

Wrap it in quotes:

npm install "-D"

Or without the "-":

npm install D

Seem to give more relevant results by cursory testing than

npm install -D

Re:A New Chat Bot Is a ‘Code Red’ for Google’s Search Business by spaceman_2020 on Saturday December 24, 2022 @07:00AM (#34116065)
The top most result is just the npm core documentation. The first reference to -D is 658 words down, whereas ChatGPT has a precise answer.

It's not just better, it's miles better.

Re:A New Chat Bot Is a ‘Code Red’ for Google’s Search Business by wruza on Saturday December 24, 2022 @07:05AM (#34116098)
My top result is a SO page with that exact question. Our mileages wary, I guess.