Skip to content

Commit 2de8254

Browse files
committed
Issue #119: Add Node.js v24 instructions
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 8e1ae77 commit 2de8254

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

docs/book/v1/faq.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ php -v
2727

2828
Depending on the selected PHP version, the output should look similar to the below:
2929

30-
```text
30+
```terminaloutput
3131
PHP 8.3.8 (cli) (built: Jun 4 2024 14:53:17) (NTS gcc x86_64)
3232
Copyright (c) The PHP Group
3333
Zend Engine v4.3.8, Copyright (c) Zend Technologies
@@ -48,6 +48,7 @@ where `{major}` is the Node.js version you want to switch to.
4848
Additionally, our setup includes predefined aliases for the above commands.
4949
The aliases are the following:
5050

51+
* `node24`: switch to Node.js 24
5152
* `node22`: switch to Node.js 22
5253
* `node20`: switch to Node.js 20
5354
* `node18`: switch to Node.js 18
@@ -58,6 +59,24 @@ After switching to a different Node.js version, test with the following command:
5859
node -v
5960
```
6061

62+
Depending on the selected Node.js version, the output should look similar to the below:
63+
64+
```terminaloutput
65+
v24.13.0
66+
```
67+
68+
Check npm version:
69+
70+
```shell
71+
npm -v
72+
```
73+
74+
Depending on the current npm version, the output should look similar to the below:
75+
76+
```terminaloutput
77+
11.9.0
78+
```
79+
6180
## How do I fix common permission issues?
6281

6382
If running your project, you encounter permission issues, follow the below steps.

docs/book/v2/faq.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ php -v
2727

2828
Depending on the selected PHP version, the output should look similar to the below:
2929

30-
```text
30+
```terminaloutput
3131
PHP 8.4.8 (cli) (built: Jun 3 2025 16:29:26) (NTS gcc x86_64)
3232
Copyright (c) The PHP Group
3333
Built by Remi's RPM repository <https://rpms.remirepo.net/> #StandWithUkraine
@@ -49,6 +49,7 @@ where `{major}` is the Node.js version you want to switch to.
4949
Additionally, our setup includes predefined aliases for the above commands.
5050
The aliases are the following:
5151

52+
* `node24`: switch to Node.js 24
5253
* `node22`: switch to Node.js 22
5354
* `node20`: switch to Node.js 20
5455
* `node18`: switch to Node.js 18
@@ -59,6 +60,24 @@ After switching to a different Node.js version, test with the following command:
5960
node -v
6061
```
6162

63+
Depending on the selected Node.js version, the output should look similar to the below:
64+
65+
```terminaloutput
66+
v24.13.0
67+
```
68+
69+
Check npm version:
70+
71+
```shell
72+
npm -v
73+
```
74+
75+
Depending on the current npm version, the output should look similar to the below:
76+
77+
```terminaloutput
78+
11.9.0
79+
```
80+
6281
## How do I fix common permission issues?
6382

6483
If running your project, you encounter permission issues, follow the below steps.

wsl/roles/system/templates/bash_profile.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ alias php85="sudo dnf module switch-to php:remi-8.5 -y"
99
alias node18="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash - && sudo dnf install nodejs -y"
1010
alias node20="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash - && sudo dnf install nodejs -y"
1111
alias node22="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo bash - && sudo dnf install nodejs -y"
12+
alias node24="sudo dnf remove nodejs -y && curl -fsSL https://rpm.nodesource.com/setup_24.x | sudo bash - && sudo dnf install nodejs -y"

0 commit comments

Comments
 (0)