react-native - 为什么我不能重新启动我的 react-native 应用程序?
问题描述
我是 react-native 的新手。
我开始启动我的应用程序,但是当我想重新启动它时,我得到了这个:
/usr/local/lib/node_modules/expo-cli/node_modules/tree-kill/index.js:83
ps.stdout.on('data', function (data) {
^
TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/usr/local/lib/node_modules/expo-cli/node_modules/tree-kill/index.js:83:15)
at /usr/local/lib/node_modules/expo-cli/node_modules/tree-kill/index.js:104:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/usr/local/lib/node_modules/expo-cli/node_modules/tree-kill/index.js:99:31)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:978:16)
at Socket.stream.socket.on (internal/child_process.js:395:11)
at Socket.emit (events.js:189:13)
at Pipe._handle.close (net.js:610:12)
为什么我会得到这个?我用 npm start 启动我的 react-native 应用程序!
解决方案
我找到了解决方案。
我不得不删除文件夹中的 .expo 文件。
推荐阅读
- ios - 是否有在应用程序卸载时调用的方法?
- javascript - 我想在多个分隔符的基础上拆分字符串并将值和键保留在一个对象中
- java - 使用 Hystrix 抛出异常的 Feign 客户端
- database - 考虑重复的Linq搜索数据库
- c# - 如何从 C# 中的 custom.config 文件中检索键值
- doxygen - Doxygen ,仅为添加/更新的 api 生成文档
- c# - Azure 存储未找到 csv 文件
- matlab - 一维向量 Matlab 的逆
- visual-studio - 使用 msbuild 命令行跳过依赖项 wixproject
- java - 无法使用 EWS API [SOAP 请求] 将 Exchange 帐户的电子邮件列入白名单