Question

In Node Js, I Can´T Access The Folder Public "Failed To Load Resource: The Server Responded With A Status Of 404 (Not Found)"

Posted August 16, 2018 1.4k views
Node.jsUbuntu 16.04

i use this line

app.use(express.static(path.join(__dirname, ’../app/views/public’)));

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello friend!

I don’t use node very much, but maybe I could at least offer some general thought that might lead to a path to resolution. Does the user account running node have permission to access the files there? Is that path technically correct from where it is executing?

Jarland

Submit an Answer