Chapter 5 :Ethers.js #2561
-
Hi when I'm installing solc.js for the dependencies in my terminal which is linux i'm getting a warning, however it finishes the installation process smoothly but I'm unable to find the (package.json and yarn.lock) in my main folder. This is what it says when I run the code : yarn add v1.22.15
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 this warning, remove package-lock.json.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
warning No license field
success Saved 1 new dependency.
info Direct dependencies
└─ [email protected]
info All dependencies
└─ [email protected]
Done in 3.25s. Can someone help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @mahendrabhishekmishra if you can't find these two files in your folder, chnaces are, they are being initiallized in a different folder. Try and search for them in your file system and move them to your working directory. |
Beta Was this translation helpful? Give feedback.
-
@mahendrabhishekmishra First make sure you are at the right location where you run the command in the terminal. And the second thing, your folder contains a |
Beta Was this translation helpful? Give feedback.
@mahendrabhishekmishra First make sure you are at the right location where you run the command in the terminal. And the second thing, your folder contains a
package-lock.json
file that is an npm dependency manager file and you are using yarn that will generate theyarn.lock
file, so do not mix both either use npm or yarn. If you want to use yarn then delete thepackage-lock.json
file and for a fresh start delete alsoyarn.lock
andnode_modules
folder and run againyarn install