$23 GRAYBYTE WORDPRESS FILE MANAGER $94

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.179
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/lib/utils/

HOME
Current File : /opt/alt/alt-nodejs24/root/usr/lib/node_modules/npm/lib/utils//explain-eresolve.js
// this is called when an ERESOLVE error is caught in the exit-handler, or when there's a log.warn('eresolve', msg, explanation), to turn it into a human-intelligible explanation of what's wrong and how to fix.
const { explainEdge, explainNode, printNode } = require('./explain-dep.js')

// expl is an explanation object that comes from Arborist.
// Depth is how far we want to want to descend into the object making a report.
// The full report (ie, depth=Infinity) is always written to the cache folder at ${cache}/eresolve-report.txt along with full json.
const explain = (expl, chalk, depth) => {
  const { edge, dep, current, peerConflict, currentEdge } = expl

  const out = []
  const whileInstalling = dep && dep.whileInstalling ||
    current && current.whileInstalling ||
    edge && edge.from && edge.from.whileInstalling
  if (whileInstalling) {
    out.push('While resolving: ' + printNode(whileInstalling, chalk))
  }

  // it "should" be impossible for an ERESOLVE explanation to lack both current and currentEdge, but better to have a less helpful error than a crashing failure.
  if (current) {
    out.push('Found: ' + explainNode(current, depth, chalk))
  } else if (peerConflict && peerConflict.current) {
    out.push('Found: ' + explainNode(peerConflict.current, depth, chalk))
  } else if (currentEdge) {
    out.push('Found: ' + explainEdge(currentEdge, depth, chalk))
  } else /* istanbul ignore else - should always have one */ if (edge) {
    out.push('Found: ' + explainEdge(edge, depth, chalk))
  }

  out.push('\nCould not resolve dependency:\n' +
    explainEdge(edge, depth, chalk))

  if (peerConflict) {
    const heading = '\nConflicting peer dependency:'
    const pc = explainNode(peerConflict.peer, depth, chalk)
    out.push(heading + ' ' + pc)
  }

  return out.join('\n')
}

// generate a full verbose report and tell the user how to fix it
const report = (expl, chalk, noColorChalk) => {
  const flags = [
    expl.strictPeerDeps ? '--no-strict-peer-deps' : '',
    '--force',
    '--legacy-peer-deps',
  ].filter(Boolean)

  const or = (arr) => arr.length <= 2
    ? arr.join(' or ') :
    arr.map((v, i, l) => i + 1 === l.length ? `or ${v}` : v).join(', ')

  const fix = `Fix the upstream dependency conflict, or retry this command with ${or(flags)} to accept an incorrect (and potentially broken) dependency resolution.`

  return {
    explanation: `${explain(expl, chalk, 4)}\n\n${fix}`,
    file: `# npm resolution error report\n\n${explain(expl, noColorChalk, Infinity)}\n\n${fix}`,
  }
}

module.exports = {
  explain,
  report,
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 May 2026 8.36 AM
root / root
0755
audit-error.js
1.053 KB
24 Apr 2026 3.56 PM
root / root
0644
auth.js
3.211 KB
24 Apr 2026 3.56 PM
root / root
0644
cmd-list.js
2.884 KB
24 Apr 2026 3.56 PM
root / root
0644
completion.fish
1.559 KB
24 Apr 2026 3.56 PM
root / root
0644
completion.sh
1.854 KB
24 Apr 2026 3.56 PM
root / root
0755
did-you-mean.js
1.116 KB
24 Apr 2026 3.56 PM
root / root
0644
display.js
16.367 KB
24 Apr 2026 3.56 PM
root / root
0644
error-message.js
15.405 KB
24 Apr 2026 3.56 PM
root / root
0644
explain-dep.js
3.563 KB
24 Apr 2026 3.56 PM
root / root
0644
explain-eresolve.js
2.521 KB
24 Apr 2026 3.56 PM
root / root
0644
format-bytes.js
0.609 KB
24 Apr 2026 3.56 PM
root / root
0644
format-search-stream.js
4.798 KB
24 Apr 2026 3.56 PM
root / root
0644
format.js
2.09 KB
24 Apr 2026 3.56 PM
root / root
0644
get-identity.js
0.778 KB
24 Apr 2026 3.56 PM
root / root
0644
get-workspaces.js
1.707 KB
24 Apr 2026 3.56 PM
root / root
0644
installed-deep.js
1.103 KB
24 Apr 2026 3.56 PM
root / root
0644
installed-shallow.js
0.569 KB
24 Apr 2026 3.56 PM
root / root
0644
is-windows.js
0.173 KB
24 Apr 2026 3.56 PM
root / root
0644
log-file.js
7.676 KB
24 Apr 2026 3.56 PM
root / root
0644
npm-usage.js
2.023 KB
24 Apr 2026 3.56 PM
root / root
0644
oidc.js
7.195 KB
24 Apr 2026 3.56 PM
root / root
0644
open-url.js
2.493 KB
24 Apr 2026 3.56 PM
root / root
0644
output-error.js
0.77 KB
24 Apr 2026 3.56 PM
root / root
0644
ping.js
0.259 KB
24 Apr 2026 3.56 PM
root / root
0644
queryable.js
9.386 KB
24 Apr 2026 3.56 PM
root / root
0644
read-user-info.js
2.046 KB
24 Apr 2026 3.56 PM
root / root
0644
reify-finish.js
0.735 KB
24 Apr 2026 3.56 PM
root / root
0644
reify-output.js
6.323 KB
24 Apr 2026 3.56 PM
root / root
0644
sbom-cyclonedx.js
5.523 KB
24 Apr 2026 3.56 PM
root / root
0644
sbom-spdx.js
5.164 KB
24 Apr 2026 3.56 PM
root / root
0644
tar.js
3.429 KB
24 Apr 2026 3.56 PM
root / root
0644
timers.js
2.07 KB
24 Apr 2026 3.56 PM
root / root
0644
update-workspaces.js
0.974 KB
24 Apr 2026 3.56 PM
root / root
0644
validate-lockfile.js
0.999 KB
24 Apr 2026 3.56 PM
root / root
0644
verify-signatures.js
12.206 KB
24 Apr 2026 3.56 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF