React Native之react-native bundle --platform android --dev false --entry-file index.js --bundle失败

1 问题

react native项目在assert目录下面生成index.android.bundle文件用下面的命令

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

编译结果如下

Scanning folders for symlinks in /home/chenyu/7.6.6/10.12/SecureMail/SecureMail/node_modules (10ms)
Scanning folders for symlinks in /home/chenyu/7.6.6/10.12/SecureMail/SecureMail/node_modules (9ms)
Loading dependency graph...

 

 

 

 

2 解决办法

npm install --verbose

相关文章

这篇文章主要讲解了“FlutterComponent动画的显和隐怎么实现...
这篇文章主要讲解了“flutter微信聊天输入框功能如何实现”,...
本篇内容介绍了“Flutter之Navigator的高级用法有哪些”的有...
这篇文章主要介绍“Flutter怎么使用Android原生播放器”,在...
Flutter开发的android端如何修改APP名称,logo,版本号,具体...
Flutter路由管理初识路由概念一.路由管理1.1.Route1.2.Mater...