简体   繁体   English

错误:找不到运行节点 js 和 express.js 应用程序的模块

[英]Error: Cannot find module running node js and express.js app

I am getting this error and I am attaching a picture我收到此错误,我正在附上一张图片

internal/modules/cjs/loader.js:983 throw err;内部/模块/cjs/loader.js:983 抛出错误; ^ ^

Error: Cannot find module错误:找不到模块

在此处输入图像描述

Go to your console, type in cd routes Go 到您的控制台,输入cd routes

After that type node app.js之后键入node app.js

You are in the wrong directory你在错误的目录

Personal Opinion: Usually the app.js is not inside the routes folder?个人观点:通常app.js不在routes文件夹内?

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

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