gpt4 book ai didi

npm - YARN START 在设备错误上没有剩余空间

转载 作者:行者123 更新时间:2023-12-04 17:45:21 24 4
gpt4 key购买 nike

操作系统:UBUNTU 18.04

我创建了一个简单的 create-react-app 项目,然后使用 yarn start 启动了一个服务器。 30% 的时候它工作正常,但 70% 的时候我会收到以下错误。

Starting the development server...

events.js:167
throw er; // Unhandled 'error' event
^

Error: ENOSPC: no space left on device, watch '/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/public'
at FSWatcher.start (internal/fs/watchers.js:164:26)
at Object.watch (fs.js:1232:11)
at createFsWatchInstance (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:232:14)
at FSWatcher.NodeFsHandler._handleDir (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:414:19)
at FSWatcher.<anonymous> (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:462:19)
at FSWatcher.<anonymous> (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:467:16)
at FSReqWrap.oncomplete (fs.js:155:5)
Emitted 'error' event at:
at FSWatcher._handleError (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/index.js:260:10)
at createFsWatchInstance (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:39:5)
at setFsWatchListener (/media/prameshbajra/pramesh/Code/learning-react-redux/shopping-cart/node_modules/chokidar/lib/nodefs-handler.js:80:15)
[... lines matching original stack trace ...]
at FSReqWrap.oncomplete (fs.js:155:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我不知道这个错误是怎么出现的。我的笔记本电脑上几乎没有存储任何东西,而且大约 90% 的硬盘是免费的。工作目录有近 200+ GB 可用空间。我还尝试通过将整个项目复制到不同的位置(也有不同的驱动器)来启动项目,但没有成功。此外,尝试了 npm start 但也没有用。

最佳答案

尝试删除您的 node_modules 文件夹,然后使用 NPM 安装('npm i')并运行('npm run start'),而不是 Yarn。我收到了同样的错误,阻止我使用 Yarn 运行我的 Node 项目。我尝试了 Node v10.10.0 和 v8.12.0。删除我的 node_modules 文件夹并使用 Yarn 重新安装没有帮助。

关于npm - YARN START 在设备错误上没有剩余空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52346505/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com