Couldn‘t find any versions for “包名“ that matches “版本号“

今天修改了公司的组件库,发布了新版本,接着在项目的package.json文件中更新了版本号,然后yarn时出现了问题:

Couldn't find any versions for "包名" that matches "版本号"

这个问题多次出现,经过观察,发现组件每次发布新版本时,能够第一时间在npm源查询到,但是无法立刻在淘宝源查询到,这说明出现这个问题只是因为淘宝源更新依赖版本有延迟。考虑到下载速度,我们平时用的都是淘宝源,所以你需要暂时切换回npm源,或者就只是坐着等一会儿,等淘宝源更新你的版本。

使用nrm可以方便快捷的操作源:

查看可选源:nrm ls

查看当前源:nrm current

添加源:nrm add 自己设置的源名 地址

切换源:nrm use 源名

删除源:nrm del 源名

nrm的安装:npm install nrm -g

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Version 1.7 ----------- - ADD: Delphi/CBuilder 10.2 Tokyo now supported. - ADD: Delphi/CBuilder 10.1 Berlin now supported. - ADD: Delphi/CBuilder 10 Seattle now supported. - ADD: Delphi/CBuilder XE8 now supported. - ADD: Delphi/CBuilder XE7 now supported. - ADD: Delphi/CBuilder XE6 now supported. - ADD: Delphi/CBuilder XE5 now supported. - ADD: Delphi/CBuilder XE4 now supported. - ADD: Delphi/CBuilder XE3 now supported. - ADD: Delphi/CBuilder XE2 now supported. - ADD: Delphi/CBuilder XE now supported. - ADD: Delphi/CBuilder 2010 now supported. - ADD: Delphi/CBuilder 2009 now supported. - ADD: New demo project FlexCADImport. - FIX: The height of the TFlexRegularPolygon object incorrectly changes with its rotation. - FIX: Added division by zero protect in method TFlexControl.MovePathSegment. - FIX: The background beyond docuemnt wasn't filled when TFlexPanel.DocClipping=True. - FIX: In "Windows ClearType" font rendering mode (OS Windows mode) the "garbage" pixels can appear from the right and from the bottom sides of the painted rectangle of the TFlexText object. - FIX: The result rectangle incorrectly calculated in the TFlexText.GetRefreshRect method. - FIX: Added FPaintCache.rcPaint cleanup in the TFlexPanel.WMPaint method. Now it is possible to define is the drawing take place via WMPaint or via the PaintTo direct call (if rcPaint contain non-empty rectangle then WMPaint in progress). - FIX: The TFlexPanel.FPaintCache field moved in the protected class section. Added rcPaint field in FPaintCache that represents drawing rectangle. - ADD: In the text prcise mode (TFlexText.Precise=True) takes into account the rotation angle (TFlexText.Angle). - FIX: Removed FG_NEWTEXTROTATE directive (the TFlexText Precise mode should be used instead). - FIX: The TFlexRegularPolygon object clones incorrectly drawed in case when TFlexRegularPolygon have alternative brush (gradient, texture). - ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFle
当出现"Could not find a version that satisfies the requirement randomn (from versions: none)"的错误提示时,表示pip无法找到满足要求的randomn包的版本。这种情况通常有以下几种可能性: 1. randomn包可能并不存在。首先,你可以确认一下你是否正确拼写了包名。如果拼写正确,那么可能这个包还没有被创建或者发布到pip的包仓库中。 2. 版本号可能没有被正确指定。检查一下你在安装命令中是否指定了正确的版本号。有时候,包的不同版本可能具有不同的名称或者语法,所以确保你在安装命令中指定了正确的版本号。 3. pip的源可能没有被正确配置。检查一下你的pip源是否正确配置。有时候,由于网络问题或者源的问题,pip无法从指定的源中获取到正确的包信息。你可以尝试更换pip的源为其他可用的源,并重新运行安装命令。 总之,当出现"Could not find a version that satisfies the requirement randomn (from versions: none)"的错误提示时,你需要确认包名的拼写是否正确,并检查指定的版本号和pip源是否正确配置。如果问题仍然存在,可能是由于包尚未创建或发布到pip仓库中,或者存在其他网络或配置问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Could not find a version that satisfies the requirement cython](https://download.csdn.net/download/weixin_47723732/88050285)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatgptT3_1"}}] [.reference_item style="max-width: 50%"] - *2* *3* [ERROR: Could not find a version that satisfies the requirement PIL (from versions: none)解决方案](https://blog.csdn.net/weixin_43178406/article/details/130536747)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatgptT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值