简体   繁体   English

dotenv throw err internal/modules/cjs/loader.js:800 找不到模块

[英]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.我刚开始学习 mern 堆栈,一切都很好,但突然我无法运行我的 nodemon 服务器,我不知道我做错了什么,所以我的服务器不会再次运行。 I already search for solutions but I can't find the answer.我已经在寻找解决方案,但我找不到答案。

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

This is the error message that I got:这是我收到的错误消息:

这是错误信息

Note: I'm using windows 10 x64注意:我使用的是 windows 10 x64

I found the problem, inside my ads.js there is a line like this我发现了问题,在我的ads.js里面有这样一行

I'm not sure what is this syntax for我不确定这个语法是什么

错误

but all i do is remove that line and my server is working again但我所做的就是删除那条线,我的服务器又可以工作了在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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