【发布时间】:2023-03-03 10:51:01
【问题描述】:
我正在使用 Expo SDK 41.0.1 和 Node v14.16.1。我最近格式化了我的电脑,现在 expo 服务器不断关闭,并出现以下错误:
(node:19580) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
Error: EPERM: operation not permitted, lstat 'C:\Users\mr-app\.git\objects\maintenance.lock'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ start: `expo start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AppData\Roaming\npm-cache\_logs\2021-05-04T10_14_15_284Z-debug.log
我在裸 react-native 项目上也遇到了同样的错误。我已经尝试从我的计算机重新安装 node 和 expo,但它似乎不起作用。请帮忙!
【问题讨论】:
-
这看起来你有并发 git 维护任务的问题
git/objects/maintenance.lock是为了防止这些任务中的多个并行运行。请参阅git-scm.com/docs/git-maintenance 了解更多信息 -
@line-o 你能提出一个修复建议吗?
标签: node.js reactjs git react-native expo