create-react-app 停留在过时的依赖上
create-react-app stuck on outdated dependency
Create-react-app 失败并出现以下错误。
似乎 react-scripts 需要旧版本的依赖项。这似乎是一个界面问题,因为我无法按照提示使用箭头键 select 新版本。
我可以在 'yarn add' 和 'npm install' 的其他目录中安装 "require-from-string" 2.02。我正在使用 OSX 10.12.6、node 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
*我无法 select 上面的版本。命中 'enter' returns 以下内容:*
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.
这是今天发生的 npm 包的一个持续问题。您可以阅读有关此问题的更多信息并获取最新状态 here in the npm website.
还有here on GitHub
看来要等他们解决问题了。
已编辑:问题已由 npm
解决
Create-react-app 失败并出现以下错误。 似乎 react-scripts 需要旧版本的依赖项。这似乎是一个界面问题,因为我无法按照提示使用箭头键 select 新版本。
我可以在 'yarn add' 和 'npm install' 的其他目录中安装 "require-from-string" 2.02。我正在使用 OSX 10.12.6、node 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
*我无法 select 上面的版本。命中 'enter' returns 以下内容:*
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.
这是今天发生的 npm 包的一个持续问题。您可以阅读有关此问题的更多信息并获取最新状态 here in the npm website. 还有here on GitHub
看来要等他们解决问题了。
已编辑:问题已由 npm