Is there a way to npm ls ... for below a version number? For example, if I do npm -ls lodash I get a huge tree, mostly all on the latest version. I just want to see where the non-latest versions of the package are.
As far as I know, not currently. If you were absolutely dead-set on doing this, you could output the command text to a file and then grep that file (or use JSON output and then parse the JSON with jq).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is there a way to
npm ls ...
for below a version number? For example, if I donpm -ls lodash
I get a huge tree, mostly all on the latest version. I just want to see where the non-latest versions of the package are.As far as I know, not currently. If you were absolutely dead-set on doing this, you could output the command text to a file and then grep that file (or use JSON output and then parse the JSON with
jq
).