gpt4 book ai didi

node.js - 安装 expo-cli : Could not resolve dependency:

转载 作者:行者123 更新时间:2023-12-04 13:52:50 24 4
gpt4 key购买 nike

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: type-fest@0.5.2
npm ERR! node_modules/expo-cli/node_modules/type-fest
npm ERR! type-fest@"^0.5.2" from boxen@4.1.0
npm ERR! node_modules/expo-cli/node_modules/boxen
npm ERR! boxen@"4.1.0" from expo-cli@4.4.7
npm ERR! node_modules/expo-cli
npm ERR! expo-cli@"*" from the root project
npm ERR! boxen@"4.1.0" from xdl@59.0.37
npm ERR! node_modules/expo-cli/node_modules/xdl
npm ERR! xdl@"59.0.37" from expo-cli@4.4.7
npm ERR! node_modules/expo-cli
npm ERR! expo-cli@"*" from the root project
npm ERR! 1 more (@expo/dev-tools)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional type-fest@"^0.13.1" from @pmmmwh/react-refresh-webpack-plugin@0.3.3
npm ERR! node_modules/expo-cli/node_modules/@pmmmwh/react-refresh-webpack-plugin
npm ERR! @pmmmwh/react-refresh-webpack-plugin@"^0.3.3" from @expo/webpack-config@0.12.71
npm ERR! node_modules/expo-cli/node_modules/@expo/webpack-config
npm ERR! @expo/webpack-config@"0.12.71" from xdl@59.0.37
npm ERR! node_modules/expo-cli/node_modules/xdl
npm ERR! xdl@"59.0.37" from expo-cli@4.4.7
npm ERR! node_modules/expo-cli
npm ERR! 1 more (@expo/dev-tools)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
我尝试使用 --force但它没有用。我也尝试使用 --legacy-peer-deps这使它安装但是当我输入 expo init myapp 时它说:

bash: expo: command not found


这里有什么问题?

最佳答案

我有同样的问题,但这个命令对我有用:

npm install --global expo-cli --legacy-peer-deps

关于node.js - 安装 expo-cli : Could not resolve dependency:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67606488/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com