Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add minimum nodejs version in docs #1495

Merged
merged 8 commits into from May 2, 2024
2 changes: 2 additions & 0 deletions en/4x/api.md
Expand Up @@ -9,6 +9,8 @@ redirect_from: "/4x/api.html"

<h1>4.x API</h1>

{% include note.html content="Express 4.0 requires Node.js 0.10 or higher." %}

{% include api/{{ page.lang }}/4x/express.md %}
{% include api/{{ page.lang }}/4x/app.md %}
{% include api/{{ page.lang }}/4x/req.md %}
Expand Down
2 changes: 2 additions & 0 deletions en/5x/api.md
Expand Up @@ -11,6 +11,8 @@ redirect_from: "/5x/api.html"

{% include note.html content="This is early beta documentation that may be incomplete and is still under development." %}

{% include note.html content="Express 5.0 requires Node.js 18 or higher." %}

{% include api/{{ page.lang }}/5x/express.md %}
{% include api/{{ page.lang }}/5x/app.md %}
{% include api/{{ page.lang }}/5x/req.md %}
Expand Down
5 changes: 5 additions & 0 deletions en/starter/faq.md
Expand Up @@ -90,4 +90,9 @@ If you have a specific file, use the `res.sendFile()` function.
If you are serving many assets from a directory, use the `express.static()`
middleware function.

## What version of Node.js does Express require?

* [Express 4.x](/{{ page.lang }}/4x/api.html) requires Node.js 0.10 or higher.
* [Express 5.x](/{{ page.lang }}/5x/api.html) requires Node.js 18 or higher.

### [Previous: More examples ](/{{ page.lang }}/starter/examples.html)
3 changes: 3 additions & 0 deletions en/starter/installing.md
Expand Up @@ -10,6 +10,9 @@ redirect_from: "/starter/installing.html"

Assuming you've already installed [Node.js](https://nodejs.org/), create a directory to hold your application, and make that your working directory.

* [Express 4.x](/{{ page.lang }}/4x/api.html) requires Node.js 0.10 or higher.
* [Express 5.x](/{{ page.lang }}/5x/api.html) requires Node.js 18 or higher.

```console
$ mkdir myapp
$ cd myapp
Expand Down