Node configuration issues

RE: http://labordaycarsforcancer.com
A2 Hosting / Node.js

Good afternoon and thank you in advance for any help. This is my first experience with Node.js and with much reading and perseverance I thought I would be successful. After weeks of frustration, I have learned a great deal but I realized I need help and fresh eyes on my project. The website is for a car club that raises money for cancer patient care. We have raised over $430,000.00 to help cancer patients directly.

Now to the issues: I have a contact form that will not send mail. A configuration error exists whereby the mail.js module is not found.
(NOTE: I am triggering many Content Security Policy errors that I will work on later)
Status 500


I read and followed the " Node.js Mailer issue" with no relief.
The files exist at the location indicated in the error.

These symlinks could be an issue. I created the /home/laborda1/public_html --> /home/laborda1/cfcapp/public to make the site functional.
Symlinks on host as pulled from terminal
[laborda1@mi3-cl9-ats2 ~]$ ls -lR /home/laborda1 | grep '^l'
lrwxrwxrwx 1 laborda1 laborda1 34 Nov 27 22:14 access-logs -> /etc/apache2/logs/domlogs/laborda1
lrwxrwxrwx 1 laborda1 laborda1 28 Jan 7 16:26 public_html -> /home/laborda1/cfcapp/public
lrwxrwxrwx 1 laborda1 laborda1 11 Nov 27 15:25 www -> public_html
lrwxrwxrwx 1 laborda1 laborda1 50 Jan 7 22:19 node_modules -> /home/laborda1/nodevenv/cfcapp/22/lib/node_modules
lrwxrwxrwx 1 laborda1 laborda1 39 Jan 7 20:18 activate -> /usr/share/l.v.e-manager/utils/activate
lrwxrwxrwx 1 laborda1 laborda1 43 Jan 7 20:18 node -> /usr/share/l.v.e-manager/utils/node_wrapper
lrwxrwxrwx 1 laborda1 laborda1 42 Jan 7 20:18 npm -> /usr/share/l.v.e-manager/utils/npm_wrapper
lrwxrwxrwx 1 laborda1 laborda1 46 Jan 7 20:18 set_env_vars.py -> /usr/share/l.v.e-manager/utils/set_env_vars.py
lrwxrwxrwx 1 laborda1 laborda1 34 Jan 7 22:19 package.json -> /home/laborda1/cfcapp/package.json
I am including some other configuration information
Node Settings
Node Settings
package.json

Project Options
ProjectOptions
The contact form - the reCaptcha works properly
ContactForm

I have more problems to work through but this is a start.
Thank you,
Al

Hi,

Have you clicked the button to npm install? And then click the restart button

1 Like

Yes, thank you, I have installed NPM many times. I have changed the configuration many times with FTP loading in different folders, Node application URL folder changes, renaming the application root from app to cfcapp and many more. Each time running NPM install. At one point I almost gave up. This current config serves .ejs pages, node setup will create a server, and npm will complete successfully after finding the package.json. I do not know what is looking for mail.js or where that configuration information comes from.
I have a Content-Security-Policy: (Report-Only policy) in place as I was looking into CSP to determine if it was blocking something.
I have installed NPM again with no change.
Thanks for any help,
Al

That's weird, hope someone can help you!

1 Like

I created a symlink from www to public. Reinstalled NPM and for some unknown reason the Host likes it now. This solved other issues as well.
Thank you, Thank you, Thank you. The system is not logical as I thought computers should be but it works now.
Al