create-react-app失败并出现错误

时间:2018-01-06 19:45:21

标签: reactjs create-react-app yarnpkg

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

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.

1 个答案:

答案 0 :(得分:3)

这是npm注册表(source

中的暂时失败