gpt4 book ai didi

react-native - 安装 expo-cli 时命令卡住

转载 作者:行者123 更新时间:2023-12-03 20:26:05 24 4
gpt4 key购买 nike

我正在尝试安装 expo-cli在 Windows 10 操作系统上通过 npm install expo-cli --global 进行 native react 命令,但它卡在这一行。

enter image description here

  • 我试过清理 npm缓存并重新安装 node .
  • 我试过运行命令 npm install expo-cli --global在 PowerShell 中。
  • 我试过安装 expo-cli通过 yarn ,但它卡在一个错误 There appears to be trouble with your internet connection. Retrying... ,虽然我检查过并且我的互联网工作正常。

  • 我不知道如何解决它。

    最佳答案

  • 运行 npm cache verify
  • 运行 npm install expo-cli --global --no-optional

  • 这对我有用。另外,请考虑使用 Powershell 而不是 cmd

    关于react-native - 安装 expo-cli 时命令卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60999595/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com