From 79f0563ae283b4ac3bf40c5e71aba28d78d16557 Mon Sep 17 00:00:00 2001 From: tuyuribr <45042245+tuyuribr@users.noreply.github.com> Date: Tue, 2 Apr 2024 22:06:32 -0300 Subject: [PATCH] Upgrade node version (#2129) * Upgade node version * Update package.json * Node v18 * Update README.md * Prevent unverified lib upgrade --------- Co-authored-by: Rajeh Taher Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- README.md | 31 ++++++++++++++++++++++++++++++- package.json | 8 ++++---- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 442c71f48..24eba1af5 100644 --- a/README.md +++ b/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 diff --git a/package.json b/package.json index aa338e7b2..5e33cffda 100644 --- a/package.json +++ b/package.json @@ -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", @@ -49,7 +49,7 @@ "sinon": "^13.0.1" }, "engines": { - "node": ">=12.0.0" + "node": ">=18.0.0" }, "optionalDependencies": { "archiver": "^5.3.1",