<p>[email protected] 未找到调度程序@^16.6.2 的匹配版本</p>

创建于 2018-11-13  ·  59评论  ·  资料来源: facebook/react

您要请求功能还是报告错误

漏洞

当前的行为是什么?

➜  npm install react<strong i="12">@latest</strong>
npm ERR! code ETARGET
npm ERR! notarget No matching version found for scheduler@^16.6.2
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'react'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sobear/.npm/_logs/2018-11-13T02_57_46_814Z-debug.log

image

image

如果当前行为是错误,请提供重现步骤,如果可能,请提供问题的最小演示。 将链接粘贴到您的 JSFiddle (https://jsfiddle.net/Luktwrdm/) 或 CodeSandbox (https://codesandbox.io/s/new) 示例如下:

预期的行为是什么?

哪些版本的 React,以及哪些浏览器/操作系统会受到这个问题的影响?

反应@16.6.2

最有用的评论

所有59条评论

+1

+1

+1

+1

刚得到一样的

+1

同样的问题

+1

+1

啊哈,我认为这是版本的笔误

手滑了哈哈

紧急情况! 在线等待

同样的问题~

也刚好碰到这个

也刚好碰到这个

愚蠢的错误,希望尽快解决

+1,cnpm 有效

现在使用yarn install而不是npm install
使用 yarn 时可以选择scheduler版本。

+1

+1 秒

+1

+1 秒

+1

+1

+1

+1

我们知道。 此外,👍 优于 +1 评论。

npm 我反应

npm ERR! code ETARGET
npm ERR! notarget No matching version found for scheduler@^16.6.2
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'react'
npm ERR! notarget

同样的问题。 在线等待

+1

+1

+1

从上面的链接问题来看,这是反应中的错误还是链接库中的错误?
(说真的,伙计们,“+1”评论就够了——他们明白了!!)

+1

+1

+1

安装失败! 错误:[ [email protected] › scheduler@^16.6.2] 找不到包调度程序@^16.6.2
错误:[ [email protected] › scheduler@^16.6.2] 找不到包调度程序@^16.6.2
在解决(/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/download/npm.js:92:11)
在 resolve.next ()
在 onFulfilled (/usr/local/lib/node_modules/cnpm/node_modules/co/index.js:65:19)
在 process._tickCallback (internal/process/next_tick.js:68:7)
npminstall 版本:3.0.1

+1

+1

愁啊。。

全世界都在等待旧金山湾苏醒。 😆

+1

+1

+1

+1

伙计们,请停止用无用的 +1 评论淹没帖子。
它使线程不可读。
该问题已报告并确认。

为什么会这样? 我只是好奇...

有人做了一个昏昏欲睡的承诺?

项目上线,自动化脚本不可用,在线等待修复

醒来并修复它!

再见了 16.6.2,看来我们几乎不认识你了……

+1 👍

发生了什么?

在 16.6.3 中修复https://unpkg.com/[email protected]/package.json

您是否还可以为依赖版本完整性检查添加适当的测试以防止再次发生这种情况! 这种类型的错误会产生连锁反应:)

我删除了文件“.evn”,它运行良好。
或者
使用纱线安装。

是的,我们正在努力改进我们的发布流程和工具。

我们正在转向一个新的发布流程,其中所有稳定版本都是通过直接从 npm 下载以前发布的金丝雀并使用新版本重新发布来构建的。 这个想法是稳定包应该与金丝雀中的包相同。

我们无法避免的唯一区别是我们必须更新版本。 在这种情况下,确切的问题是什么:D

哎呀!

我将在发布脚本中添加一些快照测试以防止未来的回归。

我也可能稍微匆忙发布了这个补丁,因为有一些与 Suspense 相关的错误修复确实需要解决。 通常我们会等待金丝雀版本稳定一点,然后再将其提升为稳定版本。

谢谢你的耐心! 另外,请下次使用锁定文件:D

感谢您解决此问题,安德鲁。 当我们遇到这个错误时,我们正处于 React 研讨会的中间。 很高兴一切都好起来了。

更新 npm

此页面是否有帮助?
0 / 5 - 0 等级