I'm new to node.js, and I can't seem to run my node app.js file after adding in a new file called projects.js with only this JS code:
exports.viewProject = function(req, res){ res.render("project"); };
This is a pre-coded project from my (useless) professor, and I'm getting this error:
I have Big Sur, uninstalled and reinstalled node, tried sudo, and it still doesn't work. Here is my app.js code as well, and I only added var project and app.get('/project'... etc).
Sorry if this is lengthy, I'm just trying to make it through online classes during a pandemic. Thanks!
https://stackoverflow.com/questions/65819939/most-middleware-issue-with-running-node-app-js-from-terminal January 21, 2021 at 09:24AM
没有评论:
发表评论