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 1k 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?


Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!