diff --git a/lib/manager/npm/post-update/npm.js b/lib/manager/npm/post-update/npm.js index 7a4d89c1f88eeb5a3ff68c8136fa17c0268135c7..ad6271f3c4f6ceaf889d6466c16a00c9346da0bc 100644 --- a/lib/manager/npm/post-update/npm.js +++ b/lib/manager/npm/post-update/npm.js @@ -104,6 +104,10 @@ async function generateLockFile( stdout += dedupeRes.stdout ? dedupeRes.stdout : ''; stderr += dedupeRes.stderr ? dedupeRes.stderr : ''; } + // istanbul ignore if + if (stderr && stderr.includes('ENOSPC: no space left on device')) { + throw new Error('disk-space'); + } const duration = process.hrtime(startTime); const seconds = Math.round(duration[0] + duration[1] / 1e9); lockFile = await fs.readFile(upath.join(cwd, filename), 'utf8');