【发布时间】:2021-10-27 22:09:00
【问题描述】:
当我尝试使用 expo start 在 expo 上运行我的 react 本机应用程序时,它会记录 qr 代码,但它也会在一段时间后记录此错误:
Failed to construct transformer: Error: Ca
nnot parse /home/runner/kitsu-mobile-1/.nvm
/test/fast/Unit tests/mocks/project_dirs/ne
sted-both/package.json as JSON: Unexpected
end of JSON input
at Object.<anonymous> (/home/runner/kit
su-mobile-1/node_modules/metro/node_modules
/jest-haste-map/build/worker.js:167:15)
...
由于该错误,我用手机扫描二维码后无法连接。
我正在使用:
- 节点 16.2.0
- npm 7.13.0
我将不胜感激。
【问题讨论】:
标签: javascript android react-native expo mobile-application