react-native init XXX初始化运行react-native run-android报错index.js: "" is not a valid identifer name

奇怪的是头天晚上老是react-native初始化项目react-native init XXX之后运行react-native run-android,手机红屏报错,pc报错如下:

error: bundling failed: index.js: "" is not a valid identifer name

BUNDLE [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)::ffff:127.0.0.1 - - [08/Nov/2019:04:04:52 +0000] "GET /index.bundle?platform=android&dev=true&minify=false HTTP/1.1" 500 - "-" "okhttp/3.12.1"

BUNDLE [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.

试了n次都这样,郁闷,关机睡觉。

第二天抱着再试一次的态度,我靠正常了!

是nodejs不稳定吗,还是网络问题呢?至今是个迷。

你可能感兴趣的:(react-native init XXX初始化运行react-native run-android报错index.js: "" is not a valid identifer name)