首页 文章

使用Expo运行时,create-react-native-app无法构建javascript包

提问于
浏览
0

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

当前环境:

节点 - 6.14.0 npm - 3.10.10 Expo - 2.3.0.1012011

在我的终端上,我得到了“失败的构建JavaScript包”,占96% .

在我的手机上,当我点击“显示详细信息”时,我得到 - “错误代码: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>

1 回答

  • 0

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

相关问题