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

时间:2019-01-25 11:30:28

标签: 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应用程序!

1 个答案:

答案 0 :(得分:0)

我找到了解决方法。

我必须删除文件夹中的.expo文件。

相关问题