diff --git a/lib/shared/runtime-info.js b/lib/shared/runtime-info.js index 56c0898be54..b99ad1038f3 100644 --- a/lib/shared/runtime-info.js +++ b/lib/shared/runtime-info.js @@ -97,7 +97,7 @@ function environment() { */ function getNpmPackageVersion(pkg, { global = false } = {}) { const npmBinArgs = ["bin", "-g"]; - const npmLsArgs = ["ls", "--depth=0", "--json", "eslint"]; + const npmLsArgs = ["ls", "--depth=0", "--json", pkg]; if (global) { npmLsArgs.push("-g");