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`
|
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
|
## Example usage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,9 +32,9 @@
|
||||||
"@pedroslopez/moduleraid": "^5.0.2",
|
"@pedroslopez/moduleraid": "^5.0.2",
|
||||||
"fluent-ffmpeg": "2.1.2",
|
"fluent-ffmpeg": "2.1.2",
|
||||||
"mime": "^3.0.0",
|
"mime": "^3.0.0",
|
||||||
"node-fetch": "^2.6.5",
|
"node-fetch": "^2.6.9",
|
||||||
"node-webpmux": "3.1.0",
|
"node-webpmux": "3.1.7",
|
||||||
"puppeteer": "^13.0.0"
|
"puppeteer": "^18.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node-fetch": "^2.5.12",
|
"@types/node-fetch": "^2.5.12",
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
"sinon": "^13.0.1"
|
"sinon": "^13.0.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.0.0"
|
"node": ">=18.0.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"archiver": "^5.3.1",
|
"archiver": "^5.3.1",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue