view raw
Giffo Giffo - 10 months ago 84
Node.js Question

Node.JS Error: ENOSPC

I have a problem with node.js and uploading files to server. For uploading files to server i use this plugin. When starting file upload to server

process crashed and show error
. The server code dosen't run.

df -h

Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 4.1G 3.5G 55% /
udev 288M 8.0K 288M 1% /dev
tmpfs 119M 168K 118M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 296M 0 296M 0% /run/shm
/dev/xvdf 9.9G 3.0G 6.5G 32% /vol
overflow 1.0M 1.0M 0 100% /tmp


ENOSPC means that there is no space on the drive.

Perhaps /tmp is full? You can configure npm to use a different temp folder by setting npm config set tmp /path/to/some/other/dir, or maybe delete everything out of the /tmp folder.


Update 1
Before i solved my problem in the way that described in above source. But this answer is more comprehensive.