I've looked into this issue, but to no avail.
app.use(express.favicon('/path/to/icon/')) also does not seem to work.
app.use(express.favicon('/path/to/icon/'))
Assuming you are using express 4.x, express.favicon is no longer bundled with express. You should be using serve-favicon module or something similar:
express.favicon
serve-favicon
var favicon = require('serve-favicon'); app.use(favicon('/path/to/icon/'));
in your project's /node_modules/express/bin/express folder add the path to your favicon inside of , 'app.use(express.favicon());'
node_modules/express/bin/express
, 'app.use(express.favicon());'
for example:
, 'app.use(express.favicon('path/to/fav/icon));'
Assuming you are using express 4.x,
express.favicon
is no longer bundled with express. You should be usingserve-favicon
module or something similar: