app.use(express.static(path.join(__dirname, 'public'))); ReferenceError: path is not defined what is issue?

Viewed 15312

Console in NodeJS command prompt

Error Message for app.use(express.static(path.join(__dirname, 'public')));
"ReferenceError: path is not defined"

I use express version 3.3.5.

What is the problem?

5 Answers
Related