ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/lib/utils
/
lib
node_modules
npm
lib
utils
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
completion
-
chmod
Open
Rename
Delete
config
-
chmod
Open
Rename
Delete
ansi-trim.js
173 B
chmod
View
DL
Edit
Rename
Delete
audit-error.js
978 B
chmod
View
DL
Edit
Rename
Delete
cmd-list.js
2.46 MB
chmod
View
DL
Edit
Rename
Delete
completion.sh
1.85 MB
chmod
View
DL
Edit
Rename
Delete
did-you-mean.js
1.46 MB
chmod
View
DL
Edit
Rename
Delete
display.js
2.84 MB
chmod
View
DL
Edit
Rename
Delete
error-message.js
12.64 MB
chmod
View
DL
Edit
Rename
Delete
exit-handler.js
6.77 MB
chmod
View
DL
Edit
Rename
Delete
explain-dep.js
3.73 MB
chmod
View
DL
Edit
Rename
Delete
explain-eresolve.js
2.56 MB
chmod
View
DL
Edit
Rename
Delete
format-bytes.js
629 B
chmod
View
DL
Edit
Rename
Delete
format-search-stream.js
3.93 MB
chmod
View
DL
Edit
Rename
Delete
get-identity.js
740 B
chmod
View
DL
Edit
Rename
Delete
is-windows.js
233 B
chmod
View
DL
Edit
Rename
Delete
log-file.js
7.64 MB
chmod
View
DL
Edit
Rename
Delete
log-shim.js
1.68 MB
chmod
View
DL
Edit
Rename
Delete
npm-usage.js
1.95 MB
chmod
View
DL
Edit
Rename
Delete
open-url-prompt.js
1.54 MB
chmod
View
DL
Edit
Rename
Delete
open-url.js
1.17 MB
chmod
View
DL
Edit
Rename
Delete
otplease.js
1.23 MB
chmod
View
DL
Edit
Rename
Delete
ping.js
252 B
chmod
View
DL
Edit
Rename
Delete
pulse-till-done.js
412 B
chmod
View
DL
Edit
Rename
Delete
queryable.js
9.58 MB
chmod
View
DL
Edit
Rename
Delete
read-user-info.js
1.99 MB
chmod
View
DL
Edit
Rename
Delete
reify-finish.js
876 B
chmod
View
DL
Edit
Rename
Delete
reify-output.js
4.96 MB
chmod
View
DL
Edit
Rename
Delete
replace-info.js
807 B
chmod
View
DL
Edit
Rename
Delete
tar.js
3.73 MB
chmod
View
DL
Edit
Rename
Delete
timers.js
3.18 MB
chmod
View
DL
Edit
Rename
Delete
update-notifier.js
4.45 MB
chmod
View
DL
Edit
Rename
Delete
validate-lockfile.js
1023 B
chmod
View
DL
Edit
Rename
Delete
web-auth.js
558 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /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 { writeFileSync } = require('fs') const { explainEdge, explainNode, printNode } = require('./explain-dep.js') // expl is an explanation object that comes from Arborist. It looks like: // 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, color, 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, color)) } // 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, color)) } else if (peerConflict && peerConflict.current) { out.push('Found: ' + explainNode(peerConflict.current, depth, color)) } else if (currentEdge) { out.push('Found: ' + explainEdge(currentEdge, depth, color)) } else /* istanbul ignore else - should always have one */ if (edge) { out.push('Found: ' + explainEdge(edge, depth, color)) } out.push('\nCould not resolve dependency:\n' + explainEdge(edge, depth, color)) if (peerConflict) { const heading = '\nConflicting peer dependency:' const pc = explainNode(peerConflict.peer, depth, color) out.push(heading + ' ' + pc) } return out.join('\n') } // generate a full verbose report and tell the user how to fix it const report = (expl, color, fullReport) => { const orNoStrict = expl.strictPeerDeps ? '--no-strict-peer-deps, ' : '' const fix = `Fix the upstream dependency conflict, or retry this command with ${orNoStrict}--force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.` writeFileSync(fullReport, `# npm resolution error report ${new Date().toISOString()} ${explain(expl, false, Infinity)} ${fix} Raw JSON explanation object: ${JSON.stringify(expl, null, 2)} `, 'utf8') return explain(expl, color, 4) + `\n\n${fix}\n\nSee ${fullReport} for a full report.` } module.exports = { explain, report, }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply