Run old version of lighthouse on command line #14803
-
Hi there, I was trying to check if there is any way to run an old version of lighthouse on the command line. If for whatever reason you need to reinstall lighthouse you will get always the new version. I would like to being able to control when the new version is installed if possible and in the meantime keep a version. Also, when running LH on the command line can it be that the version used is a previous version as a bug?? Thanks!!!! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can explicitly install it (for example, globally: Or run it like so: |
Beta Was this translation helpful? Give feedback.
-
It did work, many thanks!!!! |
Beta Was this translation helpful? Give feedback.
You can explicitly install it (for example, globally:
npm install -g lighthouse@9.6.0
)Or run it like so:
npx lighthouse@9.6.0 https://www.example.com --view
(note, you need to not be inside a npm project directory, otherwise it defers to the local lighthouse version if specified in a package.json)