【发布时间】: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