【问题标题】:events.js :174 throw er; // Unhandled 'error' event when using expoevents.js :174 抛出错误; // 使用 expo 时未处理的 'error' 事件
【发布时间】:2020-02-09 14:08:38
【问题描述】:

我已经在 android 上使用 expo 设置了我的 react native 项目。

在“expo start”之后,它第一次运行应用程序,但一段时间后我收到此错误:

events.js :174 投掷者; // 未处理的“错误”事件 ^

错误:EPERM:不允许操作,lstat 'D:\job_finder_with_authentication\node_modules.staging\set-blocking-ff60c335\LICENSE.txt' 在以下位置发出“错误”事件: 在 NodeWatcher。 (D:\job_finder_with_authentication\node_modules\sane\src\node_watcher.js:291:16) 在回调时(D:\job_finder_with_authentication\node_modules\graceful-fs\polyfills.js:295:20) 在 FSReqWrap.oncomplete (fs.js:153:21)`

有人可以帮我解决这个问题吗?我的应用直接在手机上运行。

【问题讨论】:

    标签: reactjs react-native npm react-native-android expo


    【解决方案1】:

    运行cd android && gradlew clean

    【讨论】:

      【解决方案2】:
      • 以管理员身份打开命令提示符。
      • 运行博览会开始。

      【讨论】:

        猜你喜欢
        • 2019-02-23
        • 2019-08-21
        • 2020-01-16
        • 2019-01-08
        • 2019-05-04
        • 2018-10-03
        • 1970-01-01
        • 1970-01-01
        • 2016-12-14
        相关资源
        最近更新 更多