Lesson 5: Module Not Found error #2718
-
I'm around hour 7 of the course and I try to run "Node deploy.js" and I get the following error. node:internal/modules/cjs/loader:959 Error: Cannot find module '/Users/michaelsandora/hh-fcc2/hh-fcc2/ethers-simple-storage2/deploy.js' in a prior discussion, I saw that it was suggested to delete "Node_modules" and use command "install npm". That did not work. I also ran "install npm --dev" after "install npm" and that didn't work either. earlier in the course I was able to use "node deploy.js" and got it to work but now I get the error message. I think that was before i installed "sudo yarn" to get that to work so i'm not sure if it has anything to do with that. thanks for your help, i'll provide a screenshot of where i'm at in the replies in case that helps. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
Hey @SandyTampaBay You are trying to run a nonexistent file that why you get that error. You are on the wrong folder. Move a directory backwards then run the command. The file |
Beta Was this translation helpful? Give feedback.
-
@othaime-en |
Beta Was this translation helpful? Give feedback.
Hey @SandyTampaBay You are trying to run a nonexistent file that why you get that error. You are on the wrong folder. Move a directory backwards then run the command. The file
deploy.js
is not inside theethers-simple-storage2
directory.