node.js - 当我运行 "expo init my-app"时,我无法使用 expo 构建项目(React Native 和 Node)

标签 node.js reactjs react-native npm expo

当我尝试在控制台中运行“expo init my-new-project”时,我=在选择“空白”或“选项卡”选项后收到这些消息。

? Choose a template: expo-template-blank
? Please enter a few initial configuration values.
Read more: https://docs.expo.io/versions/latest/workflow/configuration/ » 50% completed
{
"expo": {
"name": "<The name of your app visible on the home screen>",
"slug": "my-app"
}
}

我尝试了一切,但这种情况仍然发生。我如何才能正确安装它,或者如果我看到此消息,下一步是什么?

最佳答案

当您收到这样的短语时,您可以在键盘上键入一个字符并将其输入到 name() 中。如果安装了Yarn,询问是否要与yarn一起安装,填写Yes即可完成安装。文字将如下图所示出现。

enter image description here

enter image description here

关于node.js - 当我运行 "expo init my-app"时,我无法使用 expo 构建项目(React Native 和 Node),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55327400/

相关文章:

javascript - 如何等到加载 chrome 标签的纺车停止?

javascript - Mongoose 子文档数组不保存整个对象?

reactjs - 如何通过 React Hooks 使用一次效果,但仍然使用状态?

reactjs - 如何在 React 中的 onClick 之后测试 next/link (Nextjs) 获取页面重定向?

android - Android 的即时运行与 Flutter 的热重载和 React Native 的热重载之间的区别?

javascript - 在 node.js 中使用 request-promise 模块发布并收到 http_outgoing.js :618 throw new ERR_INVALID_ARG_TYPE ('first argument' , 错误

javascript - 计算我的网页的点击次数

reactjs - 如何在 React hooks 和 redux 中只获取一次且不再获取数据

javascript - 火力地堡 : Querying data inside an unknown name key (child inside another child)

react-native - FormProvider 内的 useFormContext 为 null