简体   繁体   English

为什么我不能重新启动我的本地应用程序?

[英]Why can't I restart my react-native application?

I'm new at react-native. 我是本机新手。

I reached to start my application but when I want to restart it I got this : 我到达启动我的应用程序,但是当我想重新启动它时,我得到了:

/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)

Why do I get this ? 为什么我得到这个? I start my react-native app with npm start ! 我使用npm start启动我的react-native应用程序!

I found the solution. 我找到了解决方案。

I had to remove the file .expo in my folder. 我必须删除文件夹中的.expo文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM