Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't understand Yarn check warning

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!

like image 906
spacegoing Avatar asked Jan 22 '17 10:01

spacegoing


People also ask

How do you fix a yarn error?

The easiest way to fix it is to use git checkout --theirs yarn. lock , and follow up with yarn install again (which can be followup by yarn cache clean to remove any file that wouldn't be needed anymore). This will cause the v1 lockfile to be re-imported.

How do you have yarn not issue a warning for the license field?

Just make sure you are in the directory that contains the package. json file, then just yarn or npm install then serve it as you please.

What is yarn check?

yarn check --integrity Verifies that versions and hashed values of the package contents in the project's package. json match those in yarn's lock file. This helps to verify that the package dependencies have not been altered.

What is yarn install -- check files?

yarn install is used to install all dependencies for a project. This is most commonly used when you have just checked out code for a project, or when another developer on the project has added a new dependency that you need to pick up.


1 Answers

It 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:

  1. Delete the yarn.lock file.
  2. Reinstall the packages to generate a new yarn.lock yarn install.
  3. Run again the yarn check command.
like image 66
Helder Robalo Avatar answered Oct 19 '22 01:10

Helder Robalo