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)"

i use this line

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

Subscribe
Share

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

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.

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