简体   繁体   English

如何调试“以非零代码退出的进程:4294963248”错误?

[英]How can I debug the “Process exited with non-zero code: 4294963248” bug?

I need help regarding fixing the following error:- 我需要有关修复以下错误的帮助:-

I'm getting the above mentioned error (see question title) after installing dependencies of expo react native . 安装expo react native的依赖项后出现上述错误(请参阅问题标题)。

Below is a log of the error in question from my command line:- 以下是我的命令行中有问题的错误的日志:-

Process exited with non-zero code: 4294963248 进程退出,代码非零:4294963248

[07:55:23] Installing dependencies... npm WARN tarball tarball data for lottie-react-native@2.5.0 (sha1-BxG4s0vsd0FVLCS3Hv09TKs0dXE=) seems to be corrupted. [07:55:23]安装依赖项... Lottie-react-native@2.5.0(sha1-BxG4s0vsd0FVLCS3Hv09TKs0dXE =)的npm WARN tarball tarball数据似乎已损坏。 Trying one more time. 再尝试一次。 npm WARN expo-google-sign-in@2.0.0 requires a peer of react-native@^0.55.4 but none is installed. npm WARN expo-google-sign-in@2.0.0需要对等体react-native@^0.55.4,但未安装。 You must install peer dependencies yourself. 您必须自己安装对等依赖项。 npm WARN react-native-reanimated@1.0.0-alpha.11 requires a peer of react@16.0.0-alpha.6 but none is installed. npm WARN react-native-reanimated@1.0.0-alpha.11需要对等体react@16.0.0-alpha.6,但没有安装。 You must install peer dependencies yourself. 您必须自己安装对等依赖项。 npm WARN react-native-reanimated@1.0.0-alpha.11 requires a peer of react-native@^0.44.1 but none is installed. npm WARN react-native-reanimated@1.0.0-alpha.11需要对等的react-native@^0.44.1,但未安装。 You must install peer dependencies yourself. 您必须自己安装对等依赖项。 npm WARN url-loader@1.1.2 requires a peer of webpack@^3.0.0 || npm WARN url-loader@1.1.2需要一个webpack@^3.0.0的对等项|| ^4.0.0 but none is installed. ^ 4.0.0,但未安装。 You must install peer dependencies yourself. 您必须自己安装对等依赖项。

npm ERR! npm ERR! path C:\\xampp\\htdocs\\HilfyerMobApp\\node_modules.staging\\lottie-react-native-b0472480.gradle\\3.3\\taskArtifacts\\fileHashes.bin npm ERR! 路径C:\\ xampp \\ htdocs \\ HilfyerMobApp \\ node_modules.staging \\ lottie-react-native-b0472480.gradle \\ 3.3 \\ taskArtifacts \\ fileHashes.bin npm ERR! code EPERM npm ERR! 代码EPERM npm ERR! errno -4048 npm ERR! errno -4048 npm错误! syscall unlink npm ERR! syscall取消链接npm ERR! Error: EPERM: operation not permitted, unlink 'C:\\xampp\\htdocs\\HilfyerMobApp\\node_modules.staging\\lottie-react-native-b0472480.gradle\\3.3\\taskArtifacts\\fileHashes.bin' npm ERR! 错误:EPERM:不允许进行操作,请取消链接“ C:\\ xampp \\ htdocs \\ HilfyerMobApp \\ node_modules.staging \\ lottie-react-native-b0472480.gradle \\ 3.3 \\ taskArtifacts \\ fileHashes.bin”,npm错误! { [Error: EPERM: operation not permitted, unlink 'C:\\xampp\\htdocs\\HilfyerMobApp\\node_modules.staging\\lottie-react-native-b0472480.gradle\\3.3\\taskArtifacts\\fileHashes.bin'] npm ERR! {[[错误:EPERM:不允许操作,取消链接'C:\\ xampp \\ htdocs \\ HilfyerMobApp \\ node_modules.staging \\ lottie-react-native-b0472480.gradle \\ 3.3 \\ taskArtifacts \\ fileHashes.bin'] npm错误! cause: npm ERR! 原因:npm错误! { Error: EPERM: operation not permitted, unlink 'C:\\xampp\\htdocs\\HilfyerMobApp\\node_modules.staging\\lottie-react-native-b0472480.gradle\\3.3\\taskArtifacts\\fileHashes.bin' npm ERR! {错误:EPERM:不允许执行操作,请取消链接'C:\\ xampp \\ htdocs \\ HilfyerMobApp \\ node_modules.staging \\ lottie-react-native-b0472480.gradle \\ 3.3 \\ taskArtifacts \\ fileHashes.bin'npm错误! errno: -4048, npm ERR! errno:-4048,npm错误! code: 'EPERM', npm ERR! 代码:“ EPERM”,npm错误!
syscall: 'unlink', npm ERR! syscall:'unlink',npm ERR! path: npm ERR! 路径:npm错误!
'C:\\xampp\\htdocs\\HilfyerMobApp\\node_modules\\.staging\\lottie-react-native-b0472480\\.gradle\\3.3\\taskArtifacts\\fileHashes.bin' }, npm ERR! 'C:\\ xampp \\ htdocs \\ HilfyerMobApp \\ node_modules \\ .staging \\ lottie-react-native-b0472480 \\ .gradle \\ 3.3 \\ taskArtifacts \\ fileHashes.bin'},npm错误! stack: npm ERR! 堆栈:npm ERR! 'Error: EPERM: operation not permitted, unlink \\'C:\\xampp\\htdocs\\HilfyerMobApp\\node_modules\\.staging\\lottie-react-native-b0472480\\.gradle\\3.3\\taskArtifacts\\fileHashes.bin\\'', npm ERR! '错误:EPERM:不允许操作,取消链接\\'C:\\ xampp \\ htdocs \\ HilfyerMobApp \\ node_modules \\ .staging \\ lottie-react-native-b0472480 \\ .gradle \\ 3.3 \\ taskArtifacts \\ fileHashes.bin \\'',npm ERR ! errno: -4048, npm ERR! errno:-4048,npm错误! code: 'EPERM', npm ERR! 代码:“ EPERM”,npm错误! syscall: 'unlink', npm ERR! syscall:'unlink',npm ERR! path: npm ERR! 路径:npm错误!
'C:\\xampp\\htdocs\\HilfyerMobApp\\node_modules\\.staging\\lottie-react-native-b0472480\\.gradle\\3.3\\taskArtifacts\\fileHashes.bin' } npm ERR! 'C:\\ xampp \\ htdocs \\ HilfyerMobApp \\ node_modules \\ .staging \\ lottie-react-native-b0472480 \\ .gradle \\ 3.3 \\ taskArtifacts \\ fileHashes.bin'} npm ERR! npm ERR! npm ERR! The operation was rejected by your operating system. 该操作被您的操作系统拒绝。 npm ERR! npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! npm ERR,可能是文件已被使用(由文本编辑器或防病毒软件使用)! or that you lack permissions to access it. 或者您没有访问权限。 npm ERR! npm ERR! npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! 如果您认为这可能是权限问题,请仔细检查npm ERR! permissions of the file and its containing directories, or try running npm ERR! 文件及其包含目录的权限,或尝试运行npm ERR! the command again as root/Administrator (though this is not recommended). 再次以root / Administrator身份执行命令(尽管不建议这样做)。

npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! 可以在以下位置找到该运行的完整日志:npm ERR!
C:\\Users\\Anonymous\\AppData\\Roaming\\npm-cache_logs\\2019-02-14T00_04_55_245Z-debug.log [08:04:55] Process exited with non-zero code: 4294963248 [08:04:55] Set EXPO_DEBUG=true in your env to view the stack trace. C:\\ Users \\ Anonymous \\ AppData \\ Roaming \\ npm-cache_logs \\ 2019-02-14T00_04_55_245Z-debug.log [08:04:55]进程退出,非零代码:4294963248 [08:04:55] Set EXPO_DEBUG =在您的环境中为true可以查看堆栈跟踪。

It looks like you have a broken tarball in your cache. 看起来您的缓存中有一个损坏的压缩包。 Try running this and then re-installing. 尝试运行此程序,然后重新安装。

npm cache clean --force
rm -rf ~/.npm

This will clean out the cache so you can re-fetch all of the necessary NPM files. 这将清除缓存,以便您可以重新获取所有必需的NPM文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM