diff --git a/lib/commands/config.js b/lib/commands/config.js index 24bab5fe6c9e6..0432abac391f3 100644 --- a/lib/commands/config.js +++ b/lib/commands/config.js @@ -267,7 +267,7 @@ ${defData} msg.push( `; node bin location = ${process.execPath}`, `; node version = ${process.version}`, - `; npm bin location = ${dirname(dirname(__dirname))}`, + `; npm local prefix = ${this.npm.localPrefix}`, `; npm version = ${this.npm.version}`, `; cwd = ${process.cwd()}`, `; HOME = ${process.env.HOME}`, diff --git a/tap-snapshots/test/lib/commands/config.js.test.cjs b/tap-snapshots/test/lib/commands/config.js.test.cjs index 21add30da7be0..56ef71f3efd3c 100644 --- a/tap-snapshots/test/lib/commands/config.js.test.cjs +++ b/tap-snapshots/test/lib/commands/config.js.test.cjs @@ -343,7 +343,7 @@ userconfig = "{HOME}/.npmrc" ; node bin location = {EXECPATH} ; node version = {NODE-VERSION} -; npm bin location = {NPMDIR} +; npm local prefix = {LOCALPREFIX} ; npm version = {NPM-VERSION} ; cwd = {NPMDIR} ; HOME = {HOME} @@ -359,7 +359,7 @@ userconfig = "{HOME}/.npmrc" ; node bin location = {EXECPATH} ; node version = {NODE-VERSION} -; npm bin location = {NPMDIR} +; npm local prefix = {LOCALPREFIX} ; npm version = {NPM-VERSION} ; cwd = {NPMDIR} ; HOME = {HOME} @@ -390,7 +390,7 @@ userconfig = "{HOME}/.npmrc" ; node bin location = {EXECPATH} ; node version = {NODE-VERSION} -; npm bin location = {NPMDIR} +; npm local prefix = {LOCALPREFIX} ; npm version = {NPM-VERSION} ; cwd = {NPMDIR} ; HOME = {HOME}