ario ario - 1 year ago 173
Node.js Question

node.js: Cannot find module 'ico'

My website (running on the express framework) suddenly started complaining that it needed a favicon. Upon adding a favicon.ico, it now gives me this error every time someone tries to view a page.

Error: Cannot find module 'ico'
at Function._resolveFilename (module.js:334:11)

Answer Source

Resolved; I have

app.all('/:action', function(req, res){

in my app.js, and it was trying to interpret the favicon.ico as a page.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download