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

Upgrade node version #2129

Merged
merged 17 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,36 @@ It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocke

The module is now available on npm! `npm i whatsapp-web.js`

Please note that Node v12+ is required.
Please note that Node v18+ is required.

## QUICK STEPS TO UPGRADE NODE

### Windows

#### Manual
Just get the latest LTS from https://nodejs.org

#### npm
```powershell
sudo npm install -g n
sudo n stable
```

#### Choco
```powershell
choco install nodejs-lts
```

#### Winget
```powershell
winget install OpenJS.NodeJS.LTS
```

### Ubuntu / Debian
```bash
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
```

## Example usage

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"@pedroslopez/moduleraid": "^5.0.2",
"fluent-ffmpeg": "2.1.2",
"mime": "^3.0.0",
"node-fetch": "^2.6.5",
"node-webpmux": "3.1.0",
"puppeteer": "^13.0.0"
"node-fetch": "^2.6.9",
"node-webpmux": "3.1.7",
"puppeteer": "^18.2.1"
},
"devDependencies": {
"@types/node-fetch": "^2.5.12",
Expand All @@ -49,7 +49,7 @@
"sinon": "^13.0.1"
},
"engines": {
"node": ">=12.0.0"
"node": ">=18.0.0"
},
"optionalDependencies": {
"archiver": "^5.3.1",
Expand Down
Loading