【问题标题】:create-react-native-app failed to build javascript bundle when running using Expo使用 Expo 运行时,create-react-native-app 无法构建 javascript 包
【发布时间】:2018-09-07 23:47:33
【问题描述】:

我在我的机器上安装了 create-react-native-app 以开始使用 React Native 并在 npm start 步骤本身上被此错误停止。

当前环境:

节点 - 6.14.0 npm - 3.10.10 世博会 - 2.3.0.1012011

在我的终端上,96% 时出现“构建 JavaScript 包失败”。

在我的手机上,当我点击“显示详细信息”时,我得到 - “错误代码:CLIENT_LOADING_ERROR 状态代码:500”

/<location to folder>/FirstApp/node_modules/@expo/vector-icons/fonts/Entypo.ttf: Cannot find module '/<location to folder>/FirstApp/node_modules/expo/tools/hashAssetFiles'

ABI24_0_0RCTFBQuickPerformanceLoggerConfigureHooks
ABI25_0_0RCTFBQuickPerformanceLoggerConfigureHooks
<redacted>
<redacted>
<redacted>
<redacted>
<redacted>
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
Exponent
<redacted>

【问题讨论】:

    标签: react-native expo create-react-native-app


    【解决方案1】:

    使用 $sudo rm -r node_module 删除“node_module”目录 然后运行 ​​$npm install 命令重新安装 node_modules 如果询问使用“sudo”

    【讨论】:

    • 我试过了。我也尝试使用 yarn 而不是 npm,但我一直在这个屏幕上结束。我不知道我在这里错过了什么。
    猜你喜欢
    • 2018-04-01
    • 2018-11-18
    • 1970-01-01
    • 2019-04-01
    • 1970-01-01
    • 2018-06-04
    • 2017-05-04
    • 1970-01-01
    • 2017-09-21
    相关资源
    最近更新 更多