How to install Chrome extension offline without internet connection?

I need to install an accessibility testing extension on a virtual machine that doesn’t have internet access. I’m trying to use a tool to check color contrast on a website I’m building, but the VM is completely isolated from the web.

I tried using the desktop version of the accessibility tool on my main computer first, but when I pointed it at a webpage, it told me that browser content needs to be tested with the web extension instead.

Is there a way to get the browser extension files as a downloadable package that I can transfer to my offline VM? I need to manually install it without going through the Chrome Web Store.

To install a Chrome extension offline, first download the CRX file from an online device. You can find the desired extension on the Chrome Web Store and use a CRX downloader tool to save it. After that, transfer the file to your offline VM. In Chrome, enable developer mode on the extensions page, and then simply drag and drop the CRX file into the page to install it. I’ve successfully used this method in similar offline environments; just ensure that the source of the file is secure to avoid any potential security risks.