MCPcopy Create free account
hub / github.com/nodejs/node / exitErrorMessage

Method exitErrorMessage

deps/npm/lib/npm.js:338–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

336 }
337
338 exitErrorMessage () {
339 if (this.logFiles.length) {
340 return `A complete log of this run can be found in: ${this.logFiles}`
341 }
342
343 const logsMax = this.config.get('logs-max')
344 if (logsMax <= 0) {
345 // user specified no log file
346 return `Log files were not written due to the config logs-max=${logsMax}`
347 }
348
349 // could be an error writing to the directory
350 return `Log files were not written due to an error writing to the directory: ${this.#logsDir}` +
351 '\nYou can rerun the command with `--loglevel=verbose` to see the logs in your terminal'
352 }
353
354 async #handleError (err) {
355 if (err) {

Callers 1

#handleProcessExitMethod · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected