Windows Installation Guide (Node.js 24 → Node.js 22, PM2, npm ci & Common Fixes) #979
Unanswered
JayFromIndonesia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
OpenWA Installation Guide (Windows 10)
This document summarizes the installation process, problems encountered, and solutions that finally worked on Windows.
Environment
Initial Installation (v0.11.0)
Step 1
Download OpenWA v0.11.0
Extract to
Step 2
Install dependencies
Problem
Installation failed with
Dependency causing the problem:
Solution 1
Verify Git installation
Expected output
Check npm configuration
Output
Enable Git packages
npm config set allow-git allConfigure Git to use HTTPS instead of SSH
Run installation again
Problem 2
Installation still failed.
Checking Node version
Output
Although Node 22 was already installed, Windows PATH was still pointing to Node 24.
Solution 2
Switch Node.js to v22.
Verify
Output
Run installation again
Installation completed but another warning appeared.
Problem 3
The installation completed successfully but generated
Downgrade to v0.10.10
Since v0.11.0 still produced patch issues, testing continued using v0.10.10.
Download
Verify version
node -p "require('./package.json').version"Output
Clean Installation
Instead of
Use
because package-lock.json already exists.
Installation output
However
still appeared.
Fortunately this warning did not prevent the application from running.
Running OpenWA
Production mode
Application started successfully.
Running with PM2
Install PM2
Incorrect
On Windows this resulted in
because PM2 tried to execute
as a JavaScript file.
Working Solution
Run npm through cmd.exe or use an ecosystem configuration.
Example
or
with
Start
Current Working Environment
Remaining Issue
Installation still creates
The application still runs correctly, suggesting the patch is executed in best-effort mode.
It may be worth investigating whether the patch is no longer compatible with the current whatsapp-web.js version or if the reject file can be safely ignored.
Summary
All reactions