You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

创建React应用时遇ENOSPC错误如何解决?磁盘仍有500G可用

问题:创建React项目/执行npm install时出现ENOSPC错误(磁盘仍有500G可用空间)

此前一切运行正常,关机次日尝试创建新React项目时触发ENOSPC错误,其他项目执行npm install也失败。需说明:我的磁盘仍有500G可用空间。

错误日志如下:

npm WARN tar TAR_ENTRY_ERROR ENOSPC: no space left on device, open '/media/haseeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact/node_modules/es-abstract/CHANGELOG.md'
npm WARN tar TAR_ENTRY_ERROR ENOSPC: no space left on device, open '/media/haseeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact/node_modules/es-abstract/README.md'
npm WARN tar TAR_ENTRY_ERROR ENOSPC: no space left on device, open '/media/haseeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact/node_modules/es-abstract/operations/build-unicode.mjs'
npm WARN tar TAR_ENTRY_ERROR ENOSPC: no space left on device, open '/media/haseeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact/node_modules/@esbuild/linux-x64/package.json'
npm WARN tar TAR_ENTRY_ERROR ENOSPC: no space left on device, open '/media/haseeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact/node_modules/@esbuild/linux-x64/README.md'
npm ERR! code ENOENT
npm ERR! syscall mkdir
npm ERR! path /media/haseeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact/node_modules/.bin
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, mkdir '/media/haseeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact/node_modules/.bin'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: /home/haseeb/.npm/_logs/2024-04-10T18_19_03_063Z-debug-0.log
               
 [..eeb/New Volume/6th-Semester/web-Course/Mid-II_Prep/myToDoReact]
 ✘  haseeb  

恳请有解决过该问题的朋友告知解决办法。


内容的提问来源于stack exchange,提问作者HaseebAhmed

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 08:07:52