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 the server, Node.js process crashe
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.
Source: npm 1.1.21 cannot write, ENOSPC in npm's repo in github.
Note I solved my problem in the way that described in above source. However, see Murali Krishna's answer, which is more comprehensive.