react-native init 报错



  • react-native init abc 后 项目文件只有两个:
    package.json
    yar-error.log

    Arguments:
    F:\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\bin\yarn.js add react-native --exact

    PATH:
    C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;F:\nodejs;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Roaming\npm

    Yarn version:
    0.24.5

    Node version:
    6.11.0

    Platform:
    win32 x64

    npm manifest:
    {"name":"abc","version":"0.0.1","private":true,"scripts":{"start":"node node_modules/react-native/local-cli/cli.js start"}}

    yarn manifest:
    No manifest

    Lockfile:
    No lockfile

    Trace:
    Error: https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-2.3.3.tgz: ESOCKETTIMEDOUT
    at ClientRequest.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\node_modules\request\request.js:819:19)
    at ClientRequest.g (events.js:292:16)
    at emitNone (events.js:86:13)
    at ClientRequest.emit (events.js:185:7)
    at TLSSocket.emitTimeout (_http_client.js:629:10)
    at TLSSocket.g (events.js:292:16)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket.Socket._onTimeout (net.js:338:8)
    at ontimeout (timers.js:386:14)


  • administrators

    按文档来配置淘宝源



  • @晴明 我看到现在有一个 deviceone, 这个和RN对比 有什么缺陷吗


  • administrators

    缺陷在于,根本没人知道它的缺陷——因为没人用



  • @晴明 给个账号,你的教学视频咋还收费啊~ 都是以前老胡的手下,老同事啊


  • administrators

    为什么不收费
    老胡是谁



  • @晴明 你看见我 应该会很面熟



  • @晴明 0_1498141193603_image.png

    刚买的,300+,我能重复看,还是只能看一次


登录后回复