简体   繁体   中英

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; ^

Error: Cannot find module

在此处输入图像描述

Go to your console, type in cd routes

After that type node app.js

You are in the wrong directory

Personal Opinion: Usually the app.js is not inside the routes folder?

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