【问题标题】:Expo server keeps shutting down世博服务器不断关闭
【发布时间】: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,但它似乎不起作用。请帮忙!

【问题讨论】:

标签: node.js reactjs git react-native expo


【解决方案1】:

添加webpack.config.js 忽略.git 文件夹

module.exports = {
  //...
  watchOptions: {
    ignored: /.git/,
  },
};

【讨论】:

    猜你喜欢
    • 2013-04-25
    • 1970-01-01
    • 2023-02-08
    • 1970-01-01
    • 1970-01-01
    • 2021-11-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多