【问题标题】:The term 'expo' is not recognized as the name of a cmdlet术语“expo”未被识别为 cmdlet 的名称
【发布时间】:2022-01-10 17:04:10
【问题描述】:

我正在尝试创建一个 react native (expo) 项目,并按照他们的doc 站点上的安装指南进行操作,但遇到了一个错误。
我在 Windows 10 上运行。我在 powershell 中运行了这些步骤。
npm install --global expo-cli
还有npm install expo
然后,当我尝试通过运行 expo init my-project 创建一个新项目时
我收到以下错误。

expo : The term 'expo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

我尝试将%USERPROFILE%\AppData\Roaming\npm 添加到路径变量中,但它不会影响任何内容。
请帮忙
error output

【问题讨论】:

    标签: reactjs react-native powershell npm expo


    【解决方案1】:

    我发现了问题。我不得不将路径优先级提高。

    【讨论】:

      猜你喜欢
      • 2019-10-12
      • 2017-12-11
      • 2021-12-09
      • 2020-02-25
      • 2020-04-17
      • 2018-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多