当我通过react-native run-android
运行应用程序时,出现以下错误:
info it worked if it ends with ok
verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
verbose cli 'start' ]
info using npm@6.1.0
info using node@v10.4.1
verbose run-script [ 'prestart', 'start', 'poststart' ]
info lifecycle MYAPP@1.0.5~prestart: MYAPP@1.0.5
info lifecycle MYAPP@1.0.5~start: MYAPP@1.0.5
verbose lifecycle MYAPP@1.0.5~start: unsafe-perm in lifecycle true
verbose lifecycle MYAPP@1.0.5~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\MYAPPBeside\node_modules\.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Python34;C:\Python34\Scripts;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\ProgramData\chocolatey\bin;C:\Program Files\nodejs\;C:\xampp\php;C:\composer;C:\Program Files (x86)\Bitvise SSH Client;C:\Users\sirinan.jir\AppData\Local\Microsoft\WindowsApps;C:\Users\sirinan.jir\AppData\Local\atom\bin;C:\Users\sirinan.jir\AppData\Roaming\npm;C:\Users\sirinan.jir\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\sirinan.jir\AppData\Local\Android\sdk\platform-tools;C:\Users\sirinan.jir\AppData\Roaming\Composer\vendor\bin;C:\Program Files\heroku\bin
verbose lifecycle MYAPP@1.0.5~start: CWD: D:\MYAPPBeside
silly lifecycle MYAPP@1.0.5~start: Args: [ '/d /s /c',
silly lifecycle 'node node_modules/react-native/local-cli/cli.js start' ]
silly lifecycle MYAPP@1.0.5~start: Returned: code: 134 signal: null
info lifecycle MYAPP@1.0.5~start: Failed to exec start script
verbose stack Error: MYAPP@1.0.5 start: `node node_modules/react-native/local-cli/cli.js start`
verbose stack Exit status 134
verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:304:16)
verbose stack at EventEmitter.emit (events.js:182:13)
verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
verbose stack at ChildProcess.emit (events.js:182:13)
verbose stack at maybeClose (internal/child_process.js:961:16)
verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
verbose pkgid MYAPP@1.0.5
verbose cwd D:\MYAPPBeside
verbose Windows_NT 10.0.14393
verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\npm-cli.js" "start"
verbose node v10.4.1
verbose npm v6.1.0
error code ELIFECYCLE
error errno 134
error MYAPP@1.0.5 start: `node node_modules/react-native/local-cli/cli.js start`
error Exit status 134
error Failed at the MYAPP@1.0.5 start script.
error This is probably not a problem with npm. There is likely additional logging output above.
verbose exit [ 134, true ]
我是React-Native的初学者。我该如何解决?