Giffo Giffo - 1 year ago 186
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download