Installing WPPConnect-Server for Windows

By snorlaxprime

I need to try some WPPConnect-server from github repositories, in the following location https://wppconnect.io/docs/projects/wppserver/installation

But since I am travelling and only have access to Windows machine, so I am attempting to install npm for Windows. Here are the steps that I have followed and hopefully it helps others that are in the same boat.

Step 1. Download and install Node.js & npm

Download node.js from the following location https://nodejs.org/en/download

Once installed, you can start the command prompt using the following:

if you get the version number of npm, e.g.: 10.5.0 and v20.12.0 for node.js then you know that you are on the right track.

Step 2. Install the NVM manager

Download and install the nvm manager from the following location https://github.com/coreybutler/nvm-windows/releases

During the install it should have detected your earlier version 20 of node.js and offer to manage it. So click ok to continue the install. If you open a new cmd prompt and issue the following:

You should see the version of nvm, e.g.: 1.1.12. This is the latest version at the time of writing.

Step 3. Install Gitdownload for Windows

Download and install gitdownload for windows from the following location https://git-scm.com/download/win

When you have finish the install you will be offered whether you want to open the git bash, select the radio button to open git bash and you should see the following prompt

Download the repository using the following command

I encountered a few error when downloading the repository

I updated the buffer size using the following command

And still encountered the following error

so I increased the buffer size slightly to fix the problem

git config --global http.postBuffer 157886400

Step 4. Install yarn

Yarn is the package manager replacement to npm, you will need node.js installed before installing yarn. You can install yarn using the following link https://classic.yarnpkg.com/latest.msi

Then start a new command prompt using the following

When I am trying to execute yarn dev, I encountered the following error

to fix this error you can use this command

then I encountered another error when running “yarn dev” inside the “wpconnect-server” folder

To fix the above, I followed the instructions from the error by executing

Then the execution of yarn dev is successful

Now, you can point your browser to http://localhost:21465/api-docs, and you should be presented with the WPPConnect API Rest.

Hopefully the above information is useful for you and can help you in your installation.