express icon indicating copy to clipboard operation
express copied to clipboard

Error: ENOENT, open '/home/.../nodedemo/node_modules/express/node_modules/connect/node_modules/static-favicon/../public/favicon.ico'

Open ljcqx opened this issue 12 years ago • 8 comments

express version: 3.5.0 Error: ENOENT, open '/home/.../nodedemo/node_modules/express/node_modules/connect/node_modules/static-favicon/../public/favicon.ico'

ljcqx avatar Mar 14 '14 02:03 ljcqx

Ah yes. @defunctzombie I suppose we need an express 3.5.1 that depends on connect 2.14.2 where using the default favicon works (plus, who does that??).

dougwilson avatar Mar 14 '14 02:03 dougwilson

@visionmedia can you add @dougwilson as a maintainer with publishing rights?

jonathanong avatar Mar 14 '14 02:03 jonathanong

I was not aware that connect started using those modules without doing a major version bump. I think we can just close this issue. Just supply your own real favicon. I dunno why there is even a default. On Mar 13, 2014 10:51 PM, "Douglas Christopher Wilson" < [email protected]> wrote:

Ah yes. @defunctzombie https://github.com/defunctzombie I suppose we need an express 3.5.1 that depends on connect 2.14.2 where using the default favicon works (plus, who does that??).

Reply to this email directly or view it on GitHubhttps://github.com/visionmedia/express/issues/1979#issuecomment-37612078 .

defunctzombie avatar Mar 14 '14 02:03 defunctzombie

@defunctzombie I agree that having a default favicon for that middleware doesn't particularly make sense (: But yes, with connect 2.14.x, connect switched to use all the different middleware modules that were still compatible with the versions that were in connect. Keeping the backwards-compatibility didn't require it to make the major version bump.

dougwilson avatar Mar 14 '14 03:03 dougwilson

thank you @defunctzombie @dougwilson @jonathanong

ljcqx avatar Mar 14 '14 03:03 ljcqx

The template that express generates from the command line includes the favicon middleware with the default icon. At the very least I think it should have a string placeholder.

app.use(express.favicon('path/to/your/icon.ico'));

It always sucks when you generate a template and run it without modifying it, only to find there is an error. As a user I kind of expect the template to be a guide for best practices.

AlexAllocated avatar Mar 25 '14 22:03 AlexAllocated

@chevex I agree, this issue would belong in the expressjs/generator repo tho

defunctzombie avatar Mar 25 '14 23:03 defunctzombie

I didn't notice that v4 moved the generator into its own repository. Maybe this isn't even an issue in v4. I'll look and create an issue there if need be :)

AlexAllocated avatar Mar 25 '14 23:03 AlexAllocated