Skip to content

Commit

Permalink
Update Node requirement in the doc for 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Oct 1, 2024
1 parent 076e9c4 commit 65a3fb4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion basics/installation/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ make composer
##### JavaScript and CSS dependencies

PrestaShop uses `NPM` to manage dependencies and [`Webpack`][webpack] to compile them into static assets.
You only need `NodeJS 16.x` ([you can get it here][nodejs]), and NPM will take care of it all.
You only need `NodeJS 20.x` ([you can get it here][nodejs]), and NPM will take care of it all.

```bash
cd /path/to/prestashop
Expand Down
2 changes: 1 addition & 1 deletion basics/installation/system-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ PrestaShop uses `Composer` to manage its packages. Install it [here][composer].
### NodeJS

PrestaShop uses `NPM` to manage frontend dependencies and [`Webpack`][webpack] to compile them into static assets.
You only need `NodeJS 16.x` ([you can get it here][nodejs]), and `NPM` will take care of it all.
You only need `NodeJS 20.x` ([you can get it here][nodejs]), and `NPM` will take care of it all.

#### NVM

Expand Down
2 changes: 1 addition & 1 deletion development/coding-standards/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Mark is the creator of the [Bootstrap framework](https://getbootstrap.com/).

To help developers to comply with these conventions, [Stylelint](https://stylelint.io/), a stylesheet linter, has been configured in the PrestaShop project. You can find the configuration file [on this repository](https://github.com/PrestaShop/stylelint-config).

Same as if you want to [compile assets]({{< relref "/9/development/compile-assets" >}}), you need NodeJS and NPM to run Stylelint.
Same as if you want to [compile assets]({{< relref "/9/development/compile-assets" >}}), you need NodeJS 20.x and NPM 8.x to run Stylelint.

You can run the linter like this:

Expand Down
2 changes: 1 addition & 1 deletion development/compile-assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Here is a list of compatibility:

| PrestaShop Versions | NodeJS Versions | NPM Versions |
|---------------------|-----------------|--------------|
| 9.x | 16.x | 8.x |
| 9.x | 20.x | 8.x |

If you can not manage to compile assets, you may be using an older version of PrestaShop. We strongly recommend you to install a package such as ['n'](https://www.npmjs.com/package/n?activeTab=versions) or [nvm](https://github.com/nvm-sh/nvm) to try with an older version of NodeJS.

Expand Down
6 changes: 5 additions & 1 deletion modules/core-updates/9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ PrestaShop 9.0 now requires **PHP 8.1 minimum**, with support added for PHP 8.2
- [Support for PHP 8.2](https://github.com/PrestaShop/PrestaShop/pull/29116)
- [Support for PHP 8.3](https://github.com/PrestaShop/PrestaShop/pull/34485)

## Node support

The **minimum** version to build PrestaShop assets is now the version 20.

## Core changes

### Symfony Upgrade
Expand Down Expand Up @@ -579,4 +583,4 @@ The PrestaShop back office consists of [two themes][bo-themes]. Both themes have
- Based on **Bootstrap 4**
- Utilizes the **PrestaShop UI Kit**

[bo-themes]: {{< ref "/9/development/architecture/introduction.md#bo-themes" >}}
[bo-themes]: {{< ref "/9/development/architecture/introduction.md#bo-themes" >}}
2 changes: 1 addition & 1 deletion themes/getting-started/asset-management/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Webpack compiles and minifies all this JavaScript code into a single file, which

If you want to compile your assets using Webpack (and we advise you to), follow these steps:

1. Download and install [Node.js](https://nodejs.org/), which contains the npm tool.
1. Download and install [Node.js 20.x](https://nodejs.org/), which contains the npm tool.
2. In your command line tool, open the `_dev` folder.
3. Install npm: `npm install`.
4. You then have a choice:
Expand Down

0 comments on commit 65a3fb4

Please sign in to comment.