创建新的react本机应用程序从注册表收到格式错误的响应

时间:2018-01-06 19:30:07

标签: react-native create-react-native-app

我尝试创建新的本机应用程序,但在运行create-react-native-app后,我收到了以下错误:

create-react-native-app tuts2
 Creating a new React Native app in /mnt/f/try/react-native/tuts2.

Using package manager as yarnpkg with yarn interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...

yarn add v1.3.2
info No lockfile found.
[1/4] Resolving packages...
warning react-native-scripts > xdl > auth0-js > xtend > object-keys@0.4.0:
error Received malformed response from registry for "timed-out". 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 /mnt/d/Program Files (x86)/Yarn/lib/cli.js:48907:15
at Generator.next (<anonymous>)
at step (/mnt/d/Program Files (x86)/Yarn/lib/cli.js:92:30)
at /mnt/d/Program Files (x86)/Yarn/lib/cli.js:110:14
at new Promise (<anonymous>)
at new F (/mnt/d/Program Files (x86)/Yarn/lib/cli.js:29389:28)
at /mnt/d/Program Files (x86)/Yarn/lib/cli.js:89:12
at Function.findVersionInRegistryResponse (/mnt/d/Program Files (x86)/Yarn/lib/cli.js:48946:7)
at /mnt/d/Program Files (x86)/Yarn/lib/cli.js:48963:28
at Generator.next (<anonymous>)
yarnpkg add --dev --exact --ignore-optional react-native-scripts failed

节点版本v8.9.3和npm版本为5.5.1

1 个答案:

答案 0 :(得分:1)

似乎缺少所有用户的软件包:https://github.com/floatdrop/timed-out/issues/13

更新:NPM错误:https://github.com/npm/registry/issues/255