我刚刚创建了一个带有react-native的项目,我想退出该博览会。然后我得到这个错误
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ eject: `expo eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ eject script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.
我已经尝试了在互联网上找到的所有内容,例如将更改提交到git,重新安装了所有内容。不知道怎么了。
日志显示以下内容:
0 info it worked if it ends with ok
1 verbose cli [ 'D:\\Program Files\\nodejs\\node.exe',
1 verbose cli
'C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'eject' ]
2 info using npm@6.9.0
3 info using node@v10.15.3
4 verbose run-script [ 'preeject', 'eject', 'posteject' ]
5 info lifecycle @~preeject: @
6 info lifecycle @~eject: @
7 verbose lifecycle @~eject: unsafe-perm in lifecycle true
8 verbose lifecycle @~eject: PATH: C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Web\Mobile\react-native\testApp\node_modules\.bin;C:\app\client\user\product\12.2.0\client_1\bin;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\HashiCorp\Vagrant\bin;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;D:\Program Files\nodejs\;C:\Users\user\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\user\AppData\Local\Programs\Python\Python37\;C:\Users\user\AppData\Local\Microsoft\WindowsApps;C:\Users\user\AppData\Local\GitHubDesktop\bin;D:\php-7.3.1-nts-Win32-VC15-x64;C:\Users\user\AppData\Roaming\npm
9 verbose lifecycle @~eject: CWD: D:\Web\Mobile\react-native\testApp
10 silly lifecycle @~eject: Args: [ '/d /s /c', 'expo eject' ]
11 silly lifecycle @~eject: Returned: code: 1 signal: null
12 info lifecycle @~eject: Failed to exec eject script
13 verbose stack Error: @ eject: `expo eject`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid @
15 verbose cwd D:\Web\Mobile\react-native\testApp
16 verbose Windows_NT 10.0.17134
17 verbose argv "D:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "eject"
18 verbose node v10.15.3
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error @ eject: `expo eject`
22 error Exit status 1
23 error Failed at the @ eject script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]