我尝试使用 KindeSdk 通过 expo 应用程序进行身份验证,但出现此错误
尝试运行这个
npm install expo-web-browser
npx install-expo-modules@latest
但是得到了
Run `npm audit` for details.
› Installing ios pods...
> pod install
Couldn't install Pods. Updating the Pods project and trying again...
> pod install --repo-update
Couldn't install Pods. Updating the Pods project and trying again...
Uncaught Error CocoaPodsError: Command `pod install` failed.
└─ Cause: spawn C:\WINDOWS\system32\cmd.exe ENOENT
at getImprovedPodInstallError (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:664385)
at CocoaPodsPackageManager.handleInstallErrorAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:659951)
at CocoaPodsPackageManager.runInstallTypeCommandAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:661000)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async CocoaPodsPackageManager._installAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:660563)
at async CocoaPodsPackageManager.handleInstallErrorAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:660149)
at async CocoaPodsPackageManager.runInstallTypeCommandAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:660989)
at async CocoaPodsPackageManager._installAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:660563)
at async CocoaPodsPackageManager.installAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:659584)
at async installPodsAsync (C:\Users\Hp\AppData\Local\npm-cache\_npx\b99c464f4819196b\node_modules\install-expo-modules\build\index.js:34:764962) {
code: 'COMMAND_FAILED',
cause: Error: spawn C:\WINDOWS\system32\cmd.exe ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn C:\\WINDOWS\\system32\\cmd.exe',
path: 'C:\\WINDOWS\\system32\\cmd.exe',
spawnargs: [
'/d',
'/s',
'/c',
'"pod ^"install^" ^"--repo-update^" ^"--ansi^""'
],
pid: undefined,
output: [ '', '' ],
stdout: '',
stderr: '',
status: null,
signal: null
},
isPackageManagerError: true
}
请建议我如何解决这个问题
或者您可以提供任何其他方法来在 React Native 上对用户进行身份验证
WebBrowser.OpenBrowserAync 也有同样的问题,我安装了:
npm install expo-web-browser
但是,除非您在清除缓存的同时进行重建,否则它将无法工作
npx expo start -c