diff --git a/lib/npm.js b/lib/npm.js index f0a133d27a6aa..28acdbbdd6fd7 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -317,7 +317,7 @@ class Npm { }) const { writeFileSync } = require('node:fs') - for (const [file, content] of error.files) { + for (const [file, content] of files) { const filePath = `${this.logPath}${file}` const fileContent = `'Log files:\n${this.logFiles.join('\n')}\n\n${content.trim()}\n` try {