Lesson 5: Yarn init. #1197
othaime-en
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just a small tip.
In lesson 5, when adding packages using yarn, some people might run into an error like this
warning package.json: No license field warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear t his warning, remove package-lock.json. warning No license field
Following this error, the files may be installed in another directory, which you have to and relocate to your working directory.
To prevent all this, remember to run
yarn init
in your working directory before runningyarn add solc
.Might save you some time and frustration.
Beta Was this translation helpful? Give feedback.
All reactions