Skip to content

Commit

Permalink
Merge pull request #8 from pedroslopez/main
Browse files Browse the repository at this point in the history
Upgrade node version (pedroslopez#2129)
  • Loading branch information
scaranaraa committed Apr 3, 2024
2 parents 0854a36 + 79f0563 commit 47bc6b9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
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

0 comments on commit 47bc6b9

Please sign in to comment.