无法在命令行上使用EXPO安装

时间:2020-08-26 23:39:51

标签: javascript reactjs react-native

我正在尝试在expo react native应用上设置导航。我可以在命令行上使用“ expo start”运行该应用程序。一旦我尝试根据文档安装依赖项,请使用 expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view我收到以下错误

Unexpected end of JSON input SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at readPackageJSON (C:\Users\jacob\AppData\Roaming\npm\node_modules\expo-cli\node_modules\find-yarn-workspace-root\index.js:50:17) at Object.findWorkspaceRoot [as default] (C:\Users\jacob\AppData\Roaming\npm\node_modules\expo-cli\node_modules\find-yarn-workspace-root\index.js:23:22) at isUsingYarn (C:\Users\jacob\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:37:42) at Object.createForProject (C:\Users\jacob\AppData\Roaming\npm\node_modules\expo-cli\node_modules\@expo\package-manager\src\NodePackageManagers.ts:312:14) at installAsync (C:\Users\jacob\AppData\Roaming\npm\node_modules\expo-cli\src\commands\install.ts:32:41) at Command.<anonymous> (C:\Users\jacob\AppData\Roaming\npm\node_modules\expo-cli\src\exp.ts:79:7)

我删除了节点模块和package-lock.json,并删除了npm缓存。我已经通过npm install安装了@ react-navigation / native。

0 个答案:

没有答案