Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,9 @@ ${defData}
if (!long) {
msg.push(
`; node bin location = ${process.execPath}`,
`; node version = ${process.version}`,
`; npm local prefix = ${this.npm.localPrefix}`,
`; npm version = ${this.npm.version}`,
`; cwd = ${process.cwd()}`,
`; HOME = ${process.env.HOME}`,
'; Run `npm config ls -l` to show all defaults.'
Expand Down
9 changes: 9 additions & 0 deletions tap-snapshots/test/lib/commands/config.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ prefix = "{LOCALPREFIX}"
userconfig = "{HOME}/.npmrc"

; node bin location = {EXECPATH}
; node version = {NODE-VERSION}
; npm local prefix = {LOCALPREFIX}
; npm version = {NPM-VERSION}
; cwd = {NPMDIR}
; HOME = {HOME}
; Run \`npm config ls -l\` to show all defaults.
Expand All @@ -355,6 +358,9 @@ prefix = "{LOCALPREFIX}"
userconfig = "{HOME}/.npmrc"

; node bin location = {EXECPATH}
; node version = {NODE-VERSION}
; npm local prefix = {LOCALPREFIX}
; npm version = {NPM-VERSION}
; cwd = {NPMDIR}
; HOME = {HOME}
; Run \`npm config ls -l\` to show all defaults.
Expand Down Expand Up @@ -383,6 +389,9 @@ prefix = "{LOCALPREFIX}"
userconfig = "{HOME}/.npmrc"

; node bin location = {EXECPATH}
; node version = {NODE-VERSION}
; npm local prefix = {LOCALPREFIX}
; npm version = {NPM-VERSION}
; cwd = {NPMDIR}
; HOME = {HOME}
; Run \`npm config ls -l\` to show all defaults.
Expand Down