【问题标题】:Unable to install expo-app-loading using expo无法使用 expo 安装 expo-app-loading
【发布时间】:2021-08-19 11:36:17
【问题描述】:

在运行 expo install expo-app-loading 时,我收到此错误消息

396 verbose cwd C:\{path}
397 verbose Windows_NT 10.0.19042
398 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "expo-app-loading"
399 verbose node v14.17.5
400 verbose npm  v6.14.14
401 error code ENOENT
402 error syscall rename
403 error path C:\{path}\node_modules\@expo\image-utils\node_modules\node-fetch
404 error dest C:\{path}\node_modules\@expo\image-utils\node_modules\.node-fetch.DELETE
405 error errno -4058
406 error enoent ENOENT: no such file or directory, rename 'C:\{path}\node_modules\@expo\image-utils\node_modules\node-fetch' -> 'C:\{path}\node_modules\@expo\image-utils\node_modules\.node-fetch.DELETE'
407 error enoent This is related to npm not being able to find a file.
408 verbose exit [ -4058, true ]

我也尝试了标准的 npm install 但得出了相同的结论。我应该创建一个空白文件还是需要安装先决条件?

【问题讨论】:

    标签: react-native npm expo


    【解决方案1】:

    删除node-modules

    mpn cache clean --force

    npm install

    expo install expo-app-loading

    【讨论】:

      【解决方案2】:

      尝试使用 npm 安装:

      npm install expo-app-loading@1.1.2

      或使用--save 标志:

      expo install expo-app-loading --save

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-07-09
        • 2021-11-12
        • 2019-05-16
        • 2021-08-10
        • 2022-08-20
        • 2020-05-26
        • 1970-01-01
        相关资源
        最近更新 更多