Lesson 9 Package installation errors #6154
-
Hey! So I reached Lesson 9 (Smart Contract Lottery) and as I was installing the necessary packages, npm seems to be throwing an error and the packages aren't installed.
This is the error that I am getting. I also tried installing the packages with yarn and it install them and gave a package.json file. However, when I compiled the Raffle contract, I get this error:
I tried what's mentioned in the above error but then npm throws me an error again. Confused what to do, would love someone to help me out with this. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
All right, so after hours of trial and error, turns out npm kept giving a conflict issue. I tried starting from scratch with installing hardhat with yarn and then added packages with yarn as well, which seemed to work. Keeping this up just in case someone encounters this issue with npm :) |
Beta Was this translation helpful? Give feedback.
All right, so after hours of trial and error, turns out npm kept giving a conflict issue. I tried starting from scratch with installing hardhat with yarn and then added packages with yarn as well, which seemed to work.
Keeping this up just in case someone encounters this issue with npm :)