React Native在Android模拟器上未显示输出

时间:2019-12-21 07:35:33

标签: react-native expo

我的操作系统是ubuntu,我已经使用

创建了一个本机应用程序
npm install -g expo-cli
expo init AwesomeProject
cd AwesomeProject
npm start

但是问题是我使用npm start运行应用程序的那一刻,显示了底部错误。另外我已经安装了android studio并在那里创建了一个android虚拟设备。我打开该设备,但随后使用npm start打开该应用程序,则该设备未显示输出。引发的错误如下

    Opening on Android device
INFO
12:28
Starting Metro Bundler on port 19001.
INFO
12:28
Successfully ran `adb reverse`. Localhost URLs should work on the connected Android device.
INFO
12:28
Tunnel ready.
INFO
12:28
Opening on Android device
ERROR
12:29
Failed to construct transformer:  { Error: watch /home/arsalan/AwesomeProject ENOSPC
    at _errnoException (util.js:1022:11)
    at FSWatcher.start (fs.js:1382:19)
    at Object.fs.watch (fs.js:1408:11)
    at NodeWatcher.watchdir (/home/arsalan/AwesomeProject/node_modules/sane/src/node_watcher.js:159:22)
    at new NodeWatcher (/home/arsalan/AwesomeProject/node_modules/sane/src/node_watcher.js:43:10)
    at createWatcher (/home/arsalan/AwesomeProject/node_modules/jest-haste-map/build/index.js:1052:23)
    at Array.map (<anonymous>)
    at HasteMap._watch (/home/arsalan/AwesomeProject/node_modules/jest-haste-map/build/index.js:1230:44)
    at /home/arsalan/AwesomeProject/node_modules/jest-haste-map/build/index.js:517:21
    at Generator.next (<anonymous>)
  code: 'ENOSPC',
  errno: 'ENOSPC',
  syscall: 'watch /home/arsalan/AwesomeProject',
  filename: '/home/arsalan/AwesomeProject' }
ERROR
12:29
(node:20072) UnhandledPromiseRejectionWarning: Error: watch /home/arsalan/AwesomeProject ENOSPC
    at _errnoException (util.js:1022:11)
    at FSWatcher.start (fs.js:1382:19)
    at Object.fs.watch (fs.js:1408:11)
    at NodeWatcher.watchdir (/home/arsalan/AwesomeProject/node_modules/sane/src/node_watcher.js:159:22)
    at new NodeWatcher (/home/arsalan/AwesomeProject/node_modules/sane/src/node_watcher.js:43:10)
    at createWatcher (/home/arsalan/AwesomeProject/node_modules/jest-haste-map/build/index.js:1052:23)
    at Array.map (<anonymous>)
    at HasteMap._watch (/home/arsalan/AwesomeProject/node_modules/jest-haste-map/build/index.js:1230:44)
    at /home/arsalan/AwesomeProject/node_modules/jest-haste-map/build/index.js:517:21
    at Generator.next (<anonymous>)
(node:20072) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20072) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

请让我知道该怎么办,我已经尝试了数小时的解决方案,但是没有运气。预先感谢。

0 个答案:

没有答案