Download Node
Download the latest Node.JS here – https://nodejs.org/en/download
Run the downloaded installer.
After you finish the setup, another program will pop-up, just follow the instructions on the dialog
It will also redirect you to Windows Power Shell. Just wait until the installation is finished
Search Command prompt on your Windows Search bar, and open as admin
Input these commands on CMD
npm install -g npm@latest
npm cache clean –force
Running the Unlighthouse
Run this command on the same Command Prompt:
npx unlighthouse –site #your-site
It will open the Unlighthouse program automatically. It will do a speed test on all the pages on your website, so the page that you want to optimize first.
Deleting the Unlighthouse file
Once you are done, you will want to delete the file/report that is created so that the speedtests wont fill up your storage. (The tests will be using your personal pc storage)
C:\Windows\System32\.unlighthouse