When I run yarn check
I got this warning:
warning "\u001b[2mchokidar#\u001b[22mfsevents#node-pre-gyp@^0.6.29"
could be deduped from "0.6.32" to "[email protected]"
Would someone please help me understand this?
- I don't know what does the word
deduped
mean. - Why there are so many rubbish characters in the warning message?
- What should I do to solve this warning?
Many thanks!
When I run yarn check
I got this warning:
warning "\u001b[2mchokidar#\u001b[22mfsevents#node-pre-gyp@^0.6.29"
could be deduped from "0.6.32" to "[email protected]"
Would someone please help me understand this?
- I don't know what does the word
deduped
mean. - Why there are so many rubbish characters in the warning message?
- What should I do to solve this warning?
Many thanks!
Share Improve this question edited Jun 26, 2018 at 6:44 user7637745 9852 gold badges14 silver badges27 bronze badges asked Jan 22, 2017 at 10:35 spacegoingspacegoing 5,3067 gold badges27 silver badges45 bronze badges 5- Data deduplication ... dedupe := to de-duplicate (I admit that I had to consult google for that). – Andreas Dolk Commented Jan 22, 2017 at 10:41
- Thanks for your effort! I also googled that but as a newbie I just want to double check :D – spacegoing Commented Jan 22, 2017 at 10:44
- 1 For the warning - I don't know nothing about yarn, but it looks to me as if the tool found duplicate dependencies. For now I'd ignore. There is a reported issue for these warnings. Enjoy! github./yarnpkg/yarn/issues/2287 – Andreas Dolk Commented Jan 22, 2017 at 10:52
- @Andreas_D I do enjoy this issue. Laughed out while reading this lol – spacegoing Commented Jan 22, 2017 at 11:00
-
2
The "rubbish characters" are terminal formatting escape codes:
\u001b[2m
means "faint" (light grey), and\u001b[22m
means normal color. (That they're, um, escaping into the visible message would seem to be a yarn bug.) So the message is actuallywarning "chokidar#fsevents#node-pre-gyp@^0.6.29" could be deduped from "0.6.32" to "[email protected]"
-- with the "chokidar#" part meant to be de-emphasized. (Though I actually came here looking for the answer to your third question.) – medmunds Commented Feb 24, 2017 at 2:23
1 Answer
Reset to default 12It looks like that your yarn.lock
file contains a duplicated entry for the package node-pre-gyp
at the version 0.6.32
.
You can do the following steps:
- Delete the
yarn.lock
file. - Reinstall the packages to generate a new yarn.lock
yarn install
. - Run again the
yarn check
mand.