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

August 16, 2018 786 views
Node.js Ubuntu 16.04

i use this line

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

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

Have another answer? Share your knowledge.