git - 如何让 git 将 url 重定向到本地路径?
问题描述
我的 package.json 中有 git url 依赖项,我想离线安装它们。
我尝试了什么:我的存储库位于此文件夹中:
file://c:/repository/folder/my-package/
在我的 .gitconfig 我添加了这些行
[url "file://c:/repository/folder"]
insteadOf = git.remote.com/some/path
npm i git+git.remote.com/some/path/my-package.git#v1.0.0
我收到此错误:致命:
'c:/repository/folder/my-package.git'
似乎不是 git 存储库
解决方案
推荐阅读
- oracle - ORACLE - 外部表中的日期有什么问题?
- java - 应用程序一打开就崩溃 - E/FragmentManager: No view found for id
- windows - 管理员可以绕过 MiniFilters ACCESS_DENIED 吗?
- oauth-2.0 - 元组 {:option, :server_only, :honor_cipher_order} 由于错误原因从 OAuth2 包返回
- asp.net - 通过 aspnet_regsql.exe 创建 ASP.NET 会话表的各种困难
- android - Xamarin Froms Carousel 页面在移动到以前的图像时出现 Source not Found 错误
- ios - 有没有办法免费为大约 500 个用户分发 IOS 应用程序(没有开发者帐户)?
- reactjs - 如何在类型脚本中为新类型继承模型类型?
- javascript - React Router 不显示组件
- python - 如何
使用 Python BeautifulSoup 将分隔的项目存储到单独的数组中?