Node.js: what is ENOSPC error and how to solve?

后端 未结 16 2264
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 08:52

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

16条回答
  •  遇见更好的自我
    2020-11-22 09:45

    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.

提交回复
热议问题