React Native:我安装了Native-Base后无法运行我的应用程序(npm install native-base)

时间:2020-09-21 20:34:26

标签: javascript node.js react-native npm expo

因此,我跟随老师进行了自定义的drwaer导航。在本教程中,我必须安装基于本机的程序,但这会阻止我的应用程序运行/启动。我试图从头开始创建一个新项目并安装基于本机的程序,以查看它确实是破坏了我的应用程序的本机程序。这给了我保存的结果。

我找不到解决我问题的任何解决方案。我不了解debug.log的任何内容,有人可以告诉我这是什么问题吗?该debug.log来自我使用expo init创建的新的空prjoct,并选择了Minimal选项。

Debug.log:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start'
1 verbose cli ]
2 info using npm@6.14.8
3 info using node@v14.11.0
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle @~prestart: @
6 info lifecycle @~start: @
7 verbose lifecycle @~start: unsafe-perm in lifecycle true
8 verbose lifecycle @~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\React\Laering\SkimSpots\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\Python38\Scripts\;C:\Python38\;C:\Program Files\Java\jdk1.8.0_251\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\nodejs\;C:\Program Files\OpenJDK\openjdk-8u262-b10\bin;C:\Program Files (x86)\Yarn\bin\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Users\UdviklerProfil\AppData\Local\Microsoft\WindowsApps;C:\Users\UdviklerProfil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\UdviklerProfil\AppData\Roaming\npm;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Users\UdviklerProfil\AppData\Roaming\npm;C:\Users\UdviklerProfil\AppData\Local\Android\Sdk\platform-tools;C:\Users\UdviklerProfil\AppData\Local\Yarn\bin
9 verbose lifecycle @~start: CWD: C:\React\Laering\SkimSpots
10 silly lifecycle @~start: Args: [ '/d /s /c', 'react-native start' ]
11 silly lifecycle @~start: Returned: code: 1  signal: null
12 info lifecycle @~start: Failed to exec start script
13 verbose stack Error: @ start: `react-native start`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:314:20)
13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:314:20)
13 verbose stack     at maybeClose (internal/child_process.js:1047:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid @
15 verbose cwd C:\React\Laering\SkimSpots
16 verbose Windows_NT 10.0.18363
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v14.11.0
19 verbose npm  v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error @ start: `react-native start`
22 error Exit status 1
23 error Failed at the @ start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

谢谢

0 个答案:

没有答案