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.
Try searching for, say, “what is npm install -D”
Google just throws up results about NPM, completely ignoring the most crucial part of the query, “-D”. ChatGPT shows a precise answer about npm dev dependencies.