我为android虚拟模拟器安装了任何东西,它可以在android studio中运行,但是在终端中,当我想将我的本机项目连接到该模拟器时,会在下面获取日志。
我在终端输入yarn run android
。
ReferenceError: regeneratorRuntime is not defined
at getCliConfig (C:\Users\mycomputername\project1\node_modules\react-native\local-cli\core\index.js:128:64)
at Object.<anonymous> (C:\Users\mycomputername\project1\node_modules\react-native\local-cli\core\index.js:181:30)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Module._compile (C:\Users\mycomputername\project1\node_modules\pirates\lib\index.js:83:24)
at Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Object.newLoader [as .js] (C:\Users\mycomputername\project1\node_modules\pirates\lib\index.js:88:7)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
感谢您阅读并回答这个问题。