0

I have a nodejs express 2.0 application and I want to use express 3.0 within it. Tell me please which is state of express 3.0 at now and is there examples of express 3.0 applications?

I saw connect 2.0 has been released, so can I use it with express 2.0 ?

Erik
  • 14,060
  • 49
  • 132
  • 218
  • 2
    This is not a programming question. Express 3.0 hasn't had any releases yet, but you can look at the [migration guide](https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x) and the [new features](https://github.com/visionmedia/express/wiki/New-features-in-3.x). Hold your horses. – Ricardo Tomasi Apr 18 '12 at 06:50
  • @Ricardo `npm install express` now installs 3.0.0alpha – mihai Apr 18 '12 at 07:54
  • Thanks for the link Ricardo, would you make your comment an official answer? – Plynx Jul 07 '12 at 03:17
  • @mihai - are you sure about that? seems to install 2.5.8 for me... – UpTheCreek Jul 30 '12 at 10:06
  • @UpTheCreek it's now 3.0.0rc1 – mihai Jul 31 '12 at 08:19

1 Answers1

7

I have had the same issue myself with my applications after doing npm install express .

TJ has upgraded version 3 and added/removed some features (better or for worse Im still ascertaining :P )

But the 2 things you need to MAKE sure to change on a default application is change:

app.register..

to:

app.engine

And to know that dynamicHelpers and helpers are no longer there. You have to use

app.locals.use

Strongly recommend reading his migration guide:

https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x

TJ has had some of his examples updated (and in the process of updating others) which I found a good helper to picking it back up

https://github.com/visionmedia/express/

Menztrual
  • 40,867
  • 12
  • 57
  • 70