create-react-app卡在过时的依赖关系

时间:2018-01-06 20:53:25

标签: javascript node.js reactjs npm yarnpkg

Create-react-app失败,出现以下错误。 似乎react-scripts期望旧版本的依赖项。这似乎是一个界面问题,因为我无法使用箭头键来选择新版本。

我能够安装" require-from-string" 2.02在其他目录中使用' yarn add'并且' npm install'。我使用OSX 10.12.6,节点v9.2.0和react-scripts 1.0.17。

对运行的终端响应" 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...
Couldn't find any versions for "require-from-string" that matches 
"^1.1.0"

? Please choose a version of "require-from-string" from this list: (Use 
arrow keys)

❯ 2.0.2 

*我无法选择上述版本。点击'进入'返回以下内容:*

error Received malformed response from registry for "pinkie-promise". 

The registry may be down.

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 /usr/local/lib/node_modules/yarn/lib/cli.js:48907:15
at Generator.next (<anonymous>)
at step (/usr/local/lib/node_modules/yarn/lib/cli.js:92:30)
at /usr/local/lib/node_modules/yarn/lib/cli.js:110:14
at new Promise (<anonymous>)
at new F (/usr/local/lib/node_modules/yarn/lib/cli.js:29389:28)
at /usr/local/lib/node_modules/yarn/lib/cli.js:89:12
at Function.findVersionInRegistryResponse 
(/usr/local/lib/node_modules/yarn/lib/cli.js:48946:7)
at /usr/local/lib/node_modules/yarn/lib/cli.js:48963:28
at Generator.next (<anonymous>)

Aborting installation.
yarnpkg add --exact react react-dom react-scripts --cwd ~/apps/memory-
game has failed.

Deleting generated file... package.json
Done.

1 个答案:

答案 0 :(得分:0)

这是今天发生的npm包的持续问题。您可以详细了解此问题并获取最新状态here in the npm website. 另外here on GitHub

似乎我们必须等到他们解决问题。
已编辑:问题已由npm

解决