简体   繁体   中英

dotenv throw err internal/modules/cjs/loader.js:800 cant find modules

I just started learning mern stacks, it was all fine but then suddenly I can't run my nodemon server, I don't know what I did wrong so that my server won't run again. I already search for solutions but I can't find the answer.

This is my server.js files这是我的 server.js

This is the error message that I got:

这是错误信息

Note: I'm using windows 10 x64

I found the problem, inside my ads.js there is a line like this

I'm not sure what is this syntax for

错误

but all i do is remove that line and my server is working again在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM