Lesson 5: Interacting with contracts in EthersJS | Error: Cannot find module 'ethers' #570
-
Hello! I am running into an error. I can't pinpoint what was done that caused this to happen but I can say this started as soon as I installed the dotenv library to manage environment variables. The error I get is shown below. My deploy.js code is below the error. Thank you in advance for your help! juan@Juans-MacBook-Air New Program % node deploy.js Error: Cannot find module 'ethers'
and my deploy.js code looks like this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@CoinAdopter remove the node_modules folder and run |
Beta Was this translation helpful? Give feedback.
@CoinAdopter remove the node_modules folder and run
npm install
and make sure you are on root level and package.json exist there.