【问题标题】:No matching version found for scheduler@^0.13.4未找到 scheduler@^0.13.4 的匹配版本
【发布时间】:2019-03-06 19:02:55
【问题描述】:

react 安装调度程序之前存在问题 https://github.com/facebook/react/issues/13693

昨天我可以npm install。今天对 package.json 没有任何更改,我看到了这个:

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

scheduler 似乎有 0.13.4 https://www.npmjs.com/package/scheduler 但我无法单独安装此模块。但是,我可以单独安装0.13.3。看起来0.13.4 是在 16 小时前发布的。

我正在使用反应 16.6.1

还有其他人遇到过这种情况吗?有什么解决办法吗?

【问题讨论】:

    标签: reactjs npm npm-install


    【解决方案1】:

    确实有效,

    也许您在/指向私有存储库或公司代理存储库?

    dev npm install scheduler
    npm WARN saveError ENOENT: no such file or directory, open '/Users/user/dev/package.json'
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN enoent ENOENT: no such file or directory, open '/Users/user/dev/package.json'
    npm WARN dev No description
    npm WARN dev No repository field.
    npm WARN dev No README data
    npm WARN dev No license field.
    
    + scheduler@0.13.4
    added 4 packages from 3 contributors and audited 4 packages in 1.66s
    found 0 vulnerabilities
    

    【讨论】:

    • 就是这样! :掌心:
    • 我面临同样的问题。解决方案是什么?
    • @KaushikRamachandran 这个问题很可能是/是你的 npm 镜像落后了。该问题应该会在几个小时或一天内自行解决。
    猜你喜欢
    • 2022-01-20
    • 1970-01-01
    • 1970-01-01
    • 2017-08-16
    • 2017-11-03
    • 2021-08-04
    • 2021-04-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多