Upgrade node version (#2129)

* Upgade node version

* Update package.json

* Node v18

* Update README.md

* Prevent unverified lib upgrade

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
tuyuribr 2024-04-02 22:06:32 -03:00 • committed by GitHub
commit 79f0563ae2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 34 additions and 5 deletions

View file

@ -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