Skip to content

Commit 67c1712

Browse files
authored
Merge pull request #36 from dotkernel/issue-35
Issue #35: Added support for Node.js 22
2 parents 22f7595 + 814c993 commit 67c1712

File tree

6 files changed

+20
-8
lines changed

6 files changed

+20
-8
lines changed

wsl/os/almalinux9/FAQ.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222

2323
## How do I switch to a different version of Node.js?
2424

25+
### Switch to Node.js 22.x
26+
27+
sudo dnf remove nodejs -y
28+
curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo bash -
29+
sudo dnf install nodejs -y
30+
2531
### Switch to Node.js 20.x
2632

2733
sudo dnf remove nodejs -y

wsl/os/almalinux9/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ You will install your project under the `html` directory of your project, for ex
137137
* You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
138138
* If you encounter write permission issues, see [this guide](FAQ.md#how-do-i-fix-common-permission-issues).
139139
* We install PHP 8.3 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-php).
140-
* We install NodeJS 20 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).
140+
* We install NodeJS 22 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: Add Node.js 20.x repo
3-
shell: curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo -E bash -
4-
- name: Install Node.js 20.x
2+
- name: Add Node.js 22.x repo
3+
shell: curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo -E bash -
4+
- name: Install Node.js 22.x
55
command: "dnf install nodejs -y"

wsl/os/ubuntu20/FAQ.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ sudo service apache2 restart
2626

2727
## How do I switch to a different version of Node.js?
2828

29+
### Switch to Node.js 22.x
30+
31+
sudo apt remove nodejs -y
32+
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
33+
sudo apt install nodejs -y
34+
2935
### Switch to Node.js 20.x
3036

3137
sudo apt remove nodejs -y

wsl/os/ubuntu20/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,4 @@ The virtualhost's document root is set to the `public` directory of the above lo
133133
* You can still run PHP scripts under the default Apache project directory, located at `/var/www/html/`.
134134
* If you encounter write permission issues, see [this guide](FAQ.md#how-do-i-fix-common-permission-issues).
135135
* Default version of PHP is set to 8.3. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-between-php-versions).
136-
* We install NodeJS 20 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).
136+
* We install NodeJS 22 by default. If you need a different version, see [this guide](FAQ.md#how-do-i-switch-to-a-different-version-of-nodejs).
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
- name: Add Node.js 20.x repo
3-
shell: curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
2+
- name: Add Node.js 22.x repo
3+
shell: curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
44
args:
55
warn: no
6-
- name: Install Node.js 20.x
6+
- name: Install Node.js 22.x
77
apt:
88
name: nodejs
99
state: latest

0 commit comments

Comments
 (0)