Skip to main content

Lens - build from source

· One min read

Background​

Lens 6 wouldn't start. I couldn't fix it quickly, so I decided to roll back to an earlier version.

DEBUG=true /Applications/Lens.app/Contents/MacOS/Lens

The debug logs showed errors, but I couldn't find anything helpful in the Lens GitHub issues.

Earlier releases weren't easy to download. One option was to build from source.

Building Lens​

$ git clone https://github.com/lensapp/lens.git
$ git checkout v5.5.4 # Last stable 5.x release
$ make build

This is where I ran into trouble, mostly around incompatible Node.js and package versions.

I used nvm to change Node.js versions and followed this macOS guide.

nvm ls-remote # List available Node.js versions
nvm install lts/fermium # node 15.x
nvm use lts/fermium # Select the Node.js version for this shell

Pinning the Node.js version was enough for me to build the .dmg package.

Comments and reactions