【问题标题】:create-react-app failing with errorcreate-react-app 失败并出现错误
【发布时间】:2018-06-16 07:20:09
【问题描述】:

我正在尝试使用 create-react-app 创建一个新的 react 项目,但失败并出现以下错误

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

yarn add v1.3.2
info No lockfile found.
[1/4] Resolving packages...
error Couldn't find any versions for "require-from-string" that matches "^1.1.0"
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Received malformed response from registry for "timed-out". The registry may be down.
    at MessageError (C:\Program Files (x86)\Yarn\lib\cli.js:139:5)
    at C:\Program Files (x86)\Yarn\lib\cli.js:48907:15
    at next (native)
    at step (C:\Program Files (x86)\Yarn\lib\cli.js:92:30)
    at C:\Program Files (x86)\Yarn\lib\cli.js:110:14
    at new Promise (C:\Program Files (x86)\Yarn\lib\cli.js:93093:7)
    at C:\Program Files (x86)\Yarn\lib\cli.js:89:12
    at Function.findVersionInRegistryResponse (C:\Program Files (x86)\Yarn\lib\cli.js:48946:7)
    at C:\Program Files (x86)\Yarn\lib\cli.js:48963:28
    at next (native)

Aborting installation.

【问题讨论】:

标签: reactjs create-react-app yarnpkg


【解决方案1】:

这是 npm 注册表中的临时故障 (source)

【讨论】:

  • 有什么解决方法或者我应该等待它得到修复?
  • 恐怕如果包不在您的树中,您将无能为力。你总是可以尝试使用 nwb 而不是 react-create-app 因为我认为它不需要特定的包
猜你喜欢
  • 2020-01-25
  • 2021-04-28
  • 2019-03-12
  • 1970-01-01
  • 2019-05-07
  • 2019-03-08
  • 2022-01-20
  • 1970-01-01
  • 2018-01-17
相关资源
最近更新 更多