Node.js Mailer issue

I’m implementing a new user registration. All is going well except the mailer is throwing an error. I’ve confirmed that the app/lib/modules/mail.js file is on the server and that nodemailer is listed in the package.json files. What else might it be?
Thanks.

{“status”:“500”,“code”:“MODULE_NOT_FOUND”,“message”:“Cannot find module ‘nodemailer’\nRequire stack:\n- /home/wwwtrip/app/lib/modules/mail.js\n- /home/wwwtrip/app/lib/core/app.js\n- /home/wwwtrip/app/lib/core/middleware.js\n- /home/wwwtrip/app/lib/setup/routes.js\n- /home/wwwtrip/app/lib/server.js\n- /home/wwwtrip/app/index.js\n- /opt/cpanel/ea-ruby27/root/usr/share/passenger/helper-scripts/node-loader.js”,“stack”:“Error: Cannot find module ‘nodemailer’\nRequire stack:\n- /home/wwwtrip/app/lib/modules/mail.js\n- /home/wwwtrip/app/lib/core/app.js\n- /home/wwwtrip/app/lib/core/middleware.js\n- /home/wwwtrip/app/lib/setup/routes.js\n- /home/wwwtrip/app/lib/server.js\n- /home/wwwtrip/app/index.js\n- /opt/cpanel/ea-ruby27/root/usr/share/passenger/helper-scripts/node-loader.js\n at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)\n at Function.Module._load (node:internal/modules/cjs/loader:804:27)\n at Module.require (node:internal/modules/cjs/loader:1028:19)\n at Module.require (/opt/cpanel/ea-ruby27/root/usr/share/passenger/helper-scripts/node-loader.js:80:25)\n at require (node:internal/modules/cjs/helpers:102:18)\n at App.send (/home/wwwtrip/app/lib/modules/mail.js:87:28)\n at App._exec (/home/wwwtrip/app/lib/core/app.js:599:57)\n at App._exec (/home/wwwtrip/app/lib/core/app.js:566:28)\n at processTicksAndRejections (node:internal/process/task_queues:96:5)\n at async App.exec (/home/wwwtrip/app/lib/core/app.js:535:9)\n at async App.define (/home/wwwtrip/app/lib/core/app.js:517:9)”}

Community Page
Last updated: