-
Notifications
You must be signed in to change notification settings - Fork 2.2k
现在什么情况,这个demo还能跑吗? #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
my errortrigger step:
|
这个错误跟 Node.js 的版本没有直接关系,主要是由于 依赖冲突(dependency conflict)导致的, 💥 报错关键点:你看到的错误是: npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree 它进一步说明了:
✅ 修复方法方法 1:使用
|
现在出现的新错误是:
这是因为你使用的是SSH方式来克隆子模块,但本机的SSH配置存在问题,可能的原因包括: 原因分析:
解决方案:你可以选择以下任一方式来解决此问题: 方法一:切换为 HTTPS 方式(简单推荐)修改子模块配置,使用HTTPS协议来拉取代码。 修改你的
改为:
修改完后,再运行: git submodule sync
git submodule update --init --recursive 方法二:配置 SSH 密钥认证(推荐熟悉 SSH 用户)步骤:
cat ~/.ssh/id_rsa.pub 如果没有任何内容输出,表示你本地尚未创建SSH Key。你需要创建一个SSH Key:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
ssh -T [email protected]
如果出现类似下面的内容,说明成功:
此时再运行: git submodule update --init --recursive 推荐方案:
你可以根据自己的情况,选择适合的方案进行操作。 |
为什么我在根目录执行npm run init就报fatal: not a git repository (or any of the parent directories): .git,然后我跑去 git下载下来,就报Clone failed.
Cannot clone submodules.,这怎么搞啊
The text was updated successfully, but these errors were encountered: