Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Update Express/Favicon #204

Open
gazvaltech opened this issue Sep 7, 2017 · 0 comments
Open

Update Express/Favicon #204

gazvaltech opened this issue Sep 7, 2017 · 0 comments

Comments

@gazvaltech
Copy link

gazvaltech commented Sep 7, 2017

Hi there, I have just setup a local version of this but am seeing an error on the command line.

node start.js is erroring.

Running "clean:0" (clean) task
>> 1 path cleaned.

Running "copy:assets" (copy) task
Created 4 directories, copied 50 files

Running "replace:fixSass" (replace) task

Running "sass:dev" (sass) task

Running "concurrent:target" (concurrent) task
    Running "watch" task
    Waiting...
    Running "nodemon:dev" (nodemon) task
    [nodemon] 1.12.0
    [nodemon] to restart at any time, enter `rs`
    [nodemon] watching: *.*
    [nodemon] starting `node server.js --gruntfile=/Users/Gaz.Valtech/Sites/nhs.uk/nhs_prototype_kit/Gruntfile.js --color`
    /Users/Gaz.Valtech/Sites/nhs.uk/nhs_prototype_kit/node_modules/express/lib/express.js:107
          throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.');
          ^

    Error: Most middleware (like favicon) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
        at Function.get (/Users/Gaz.Valtech/Sites/nhs.uk/nhs_prototype_kit/node_modules/express/lib/express.js:107:13)
        at Object.<anonymous> (/Users/Gaz.Valtech/Sites/nhs.uk/nhs_prototype_kit/server.js:45:16)
        at Module._compile (module.js:573:30)
        at Object.Module._extensions..js (module.js:584:10)
        at Module.load (module.js:507:32)
        at tryModuleLoad (module.js:470:12)
        at Function.Module._load (module.js:462:3)
        at Function.Module.runMain (module.js:609:10)
        at startup (bootstrap_node.js:158:16)
        at bootstrap_node.js:598:3
    [nodemon] app crashed - waiting for file changes before starting...

I tried to update the favicon module by splitting it out like it has here: https://stackoverflow.com/questions/25550819/error-most-middleware-like-bodyparser-is-no-longer-bundled-with-express but that generated more errors.

Please advise. 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant