I have 3 virtual hard drives on my Linux machine:
- Disk /dev/sbd: 1 TiB
- Disk /dev/sdc: 512 GiB
- Disk /dev/sda: 50 GiB
When trying to npm install packages, I get an ENOSPC error.
npm ERR! syscall open
npm ERR! path /home/VABZBT/.npm/_cacache/tmp/8b479517
npm ERR! errno -28
npm ERR! nospc ENOSPC: no space left on device, open '/home/VABZBT/.npm/_cacache/tmp/8b479517'
npm ERR! nospc There appears to be insufficient space on your system to finish.
npm ERR! nospc Clear up some disk space and try again.
I tried some solutions from other SO pages (Node.js: what is ENOSPC error and how to solve?) but it didn't fix the error. I also tried clearing the files & tmp directory but the disk space is still used.
Is there a way to tell npm explicitly to use the 512G sdc drive to install this package? This is a work-owned machine so reformatting my drive or anything groundbreaking like that isn't really an option.