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:
parent
72a18816a9
commit
79f0563ae2
2 changed files with 34 additions and 5 deletions
31
README.md
31
README.md
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue