首页 > 解决方案 > 如何进一步调试 cli react-native bundle 命令?命令挂起,没有错误

问题描述

我一直在使用 appcenter.ms 代码部署和命令:

appcenter codepush release-react -a <account>/<App> -d Production

此命令永远挂起并且永远不会完成,这是输出:

Loading dependency graph, done. Loading dependency graph...info Writing bundle output to:, ./CodePush/main.jsbundle info Done writing bundle output info Copying 34 asset files info Done copying assets

阅读他们的文档:https ://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli 。我尝试在部署之前自己创建包,结果发现这个命令挂在哪里:

react-native bundle --platform ios --entry-file index.js --bundle-output ./CodePush/main.jsbundle --assets-dest ./CodePush

与上面相同的输出。

我有一种预感,它与我添加的 npm 模块有关,因为它最近在某个时候工作,但我不确定如何获取更多信息以进一步解决问题。任何帮助,将不胜感激。

标签: react-nativevisual-studio-app-center

解决方案


我错误地将 react-native-clean-project 安装为 npm 模块,一旦删除,一切都会再次按预期工作。由于缺少日志输出,不确定到底是什么问题。


推荐阅读