小编Omk*_*shi的帖子

安装 React-Native 应用程序时出错无法解析从“npm pack expo-template-blank --dry-run”返回的 JSON。世博模板空白-45.0.3.tgz

展示应用程序时显示此错误

\n
Error downloading and extracting template package: Error: Could not parse JSON returned from "npm pack expo-template-blank --dry-run".\nexpo-template-blank-45.0.3.tgz\n\nError: Unexpected token e in JSON at position 0\n\xc3\x97 Something went wrong while downloading and extracting the template.\n\nCan't read JSON file: G:\\ReactNative\\FoodApp\\app.json\n\xe2\x94\x94\xe2\x94\x80 Cause: Error: ENOENT: no such file or directory, open 'G:\\ReactNative\\FoodApp\\app.json'\n\xe2\x94\x9c\xe2\x94\x80 readAsync C:\\Users\\lenovo\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\node_modules\\@expo\\json-file\\src\\JsonFile.ts:158:13\n\xe2\x94\x9c\xe2\x94\x80 extractAndPrepareTemplateAppAsync C:\\Users\\lenovo\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\src\\commands\\utils\\extractTemplateAppAsync.ts:25:25\n\xe2\x94\x94\xe2\x94\x80 actionAsync C:\\Users\\lenovo\\AppData\\Roaming\\npm\\node_modules\\expo-cli\\src\\commands\\initAsync.ts:287:19\n\nError downloading and extracting template package: Error: Could not parse JSON returned from "npm pack expo-template-blank --dry-run".\n\nexpo-template-blank-45.0.3.tgz\n\nError: Unexpected token e in JSON at position 0\n\xc3\x97 …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native

11
推荐指数
2
解决办法
8572
查看次数

标签 统计

react-native ×1

reactjs ×1