react-native init新项目失败(上个月还可以成功)



  • 这个月开始不能初始化项目,所有软件没有做更新,不知道出了什么问题,以下是报错。

    D:\react>react-native init douban
    prompt: Directory douban already exists. Continue?: (no) yes
    yes
    This will walk you through creating a new React Native project in D:\react\douban
    Using yarn v0.17.8
    Installing react-native...
    yarn add v0.17.8
    info No lockfile found.
    [1/4] Resolving packages...
    warning react-native > xcode > node-uuid@1.4.7: use uuid module instead
    [2/4] Fetching packages...
    ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█████████████████░░░░░░░░░░░░░░░░░░░░░░░████████████████████████████████████████████████████████████████████████████████error An unexpected error occurred: "http://registry.npm.taobao.org/rimraf/download/rimraf-2.6.1.tgz: invalid tar file".
    info If you think this is a bug, please open a bug report with the information provided in "D:\react\douban\yarn-error.log".
    info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
    { [Error: Command failed: yarn add react-native --exact]
    error: null,
    cmd: 'yarn add react-native --exact',
    file: 'C:\WINDOWS\system32\cmd.exe',
    args:
    [ 'C:\WINDOWS\system32\cmd.exe',
    '/s',
    '/c',
    '"yarn add react-native --exact"' ],
    options:
    { windowsVerbatimArguments: true,
    stdio: [ [Object], [Object], [Object] ],
    file: 'C:\WINDOWS\system32\cmd.exe',
    args:
    [ 'C:\WINDOWS\system32\cmd.exe',
    '/s',
    '/c',
    '"yarn add react-native --exact"' ],
    envPairs:
    [ 'ALLUSERSPROFILE=C:\ProgramData',
    'ANDROID_HOME=D:\software\sdk',
    'APPDATA=C:\Users\MOMO\AppData\Roaming',
    'CommonProgramFiles=C:\Program Files\Common Files',
    'CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files',
    'CommonProgramW6432=C:\Program Files\Common Files',
    'COMPUTERNAME=MOMO-HP',
    'ComSpec=C:\WINDOWS\system32\cmd.exe',
    'FP_NO_HOST_CHECK=NO',
    'HOMEDRIVE=C:',
    'HOMEPATH=\Users\MOMO',
    'JAVA_HOME=D:\software\jdk',
    'LOCALAPPDATA=C:\Users\MOMO\AppData\Local',
    'LOGONSERVER=\\MOMO-HP',
    'NUMBER_OF_PROCESSORS=4',
    'OneDrive=C:\Users\MOMO\OneDrive',
    'OnlineServices=Online Services',
    'OS=Windows_NT',
    'Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\IntelSGXPSW\bin\x64\Release\;C:\Program Files\Intel\IntelSGXPSW\bin\win32\Release\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software\;c:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\software\svn\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\software\Git\cmd;D:\software\nodejs\;D:\software\yarn\bin;D:\software;C:\Users\MOMO\AppData\Local\Microsoft\WindowsApps;D:\sortware\wkhtmltopdf;C:\wamp\bin;D:\software\jdk\bin;D:\software\sdk\tools;C:\Users\MOMO\AppData\Roaming\npm;C:\Users\MOMO\AppData\Local\Yarn\.bin',
    'PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC',
    'Platform=BNB',
    'platformcode=6U',
    'PROCESSOR_ARCHITECTURE=AMD64',
    'PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 78 Stepping 3, GenuineIntel',
    'PROCESSOR_LEVEL=6',
    'PROCESSOR_REVISION=4e03',
    'ProgramData=C:\ProgramData',
    'ProgramFiles=C:\Program Files',
    'ProgramFiles(x86)=C:\Program Files (x86)',
    'ProgramW6432=C:\Program Files',
    'PROMPT=$P$G',
    'PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\',
    'PUBLIC=C:\Users\Public',
    'RegionCode=APJ',
    'SESSIONNAME=Console',
    'SystemDrive=C:',
    'SystemRoot=C:\WINDOWS',
    'TEMP=C:\Users\MOMO\AppData\Local\Temp',
    'TMP=C:\Users\MOMO\AppData\Local\Temp',
    'USERDOMAIN=MOMO-HP',
    'USERDOMAIN_ROAMINGPROFILE=MOMO-HP',
    'USERNAME=MOMO',
    'USERPROFILE=C:\Users\MOMO',
    'VS110COMNTOOLS=D:\software\VS2012\Common7\Tools\',
    'windir=C:\WINDOWS',
    'windows_tracing_flags=3',
    'windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log' ] },
    envPairs:
    [ 'ALLUSERSPROFILE=C:\ProgramData',
    'ANDROID_HOME=D:\software\sdk',
    'APPDATA=C:\Users\MOMO\AppData\Roaming',
    'CommonProgramFiles=C:\Program Files\Common Files',
    'CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files',
    'CommonProgramW6432=C:\Program Files\Common Files',
    'COMPUTERNAME=MOMO-HP',
    'ComSpec=C:\WINDOWS\system32\cmd.exe',
    'FP_NO_HOST_CHECK=NO',
    'HOMEDRIVE=C:',
    'HOMEPATH=\Users\MOMO',
    'JAVA_HOME=D:\software\jdk',
    'LOCALAPPDATA=C:\Users\MOMO\AppData\Local',
    'LOGONSERVER=\\MOMO-HP',
    'NUMBER_OF_PROCESSORS=4',
    'OneDrive=C:\Users\MOMO\OneDrive',
    'OnlineServices=Online Services',
    'OS=Windows_NT',
    'Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\IntelSGXPSW\bin\x64\Release\;C:\Program Files\Intel\IntelSGXPSW\bin\win32\Release\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software\;c:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\software\svn\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\software\Git\cmd;D:\software\nodejs\;D:\software\yarn\bin;D:\software;C:\Users\MOMO\AppData\Local\Microsoft\WindowsApps;D:\sortware\wkhtmltopdf;C:\wamp\bin;D:\software\jdk\bin;D:\software\sdk\tools;C:\Users\MOMO\AppData\Roaming\npm;C:\Users\MOMO\AppData\Local\Yarn\.bin',
    'PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC',
    'Platform=BNB',
    'platformcode=6U',
    'PROCESSOR_ARCHITECTURE=AMD64',
    'PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 78 Stepping 3, GenuineIntel',
    'PROCESSOR_LEVEL=6',
    'PROCESSOR_REVISION=4e03',
    'ProgramData=C:\ProgramData',
    'ProgramFiles=C:\Program Files',
    'ProgramFiles(x86)=C:\Program Files (x86)',
    'ProgramW6432=C:\Program Files',
    'PROMPT=$P$G',
    'PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\',
    'PUBLIC=C:\Users\Public',
    'RegionCode=APJ',
    'SESSIONNAME=Console',
    'SystemDrive=C:',
    'SystemRoot=C:\WINDOWS',
    'TEMP=C:\Users\MOMO\AppData\Local\Temp',
    'TMP=C:\Users\MOMO\AppData\Local\Temp',
    'USERDOMAIN=MOMO-HP',
    'USERDOMAIN_ROAMINGPROFILE=MOMO-HP',
    'USERNAME=MOMO',
    'USERPROFILE=C:\Users\MOMO',
    'VS110COMNTOOLS=D:\software\VS2012\Common7\Tools\',
    'windir=C:\WINDOWS',
    'windows_tracing_flags=3',
    'windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log' ],
    stderr: null,
    stdout: null,
    pid: 9880,
    output: [ null, null, null ],
    signal: null,
    status: 1 }
    Command yarn add react-native --exact failed.



  • @Wangxt93 说:

    error occurred: "http://registry.npm.taobao.org/rimraf/download/rimraf-2.6.1.tgz: invalid tar file".
    这个链接单独打开可以下载

    以下是项目里的yarn-error.log
    Arguments:
    D:\software\nodejs\node.exe D:\software\yarn\bin\yarn.js add react-native --exact --verbose

    PATH:
    C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\IntelSGXPSW\bin\x64\Release;C:\Program Files\Intel\IntelSGXPSW\bin\win32\Release;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software;c:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\software\svn\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;D:\software\Git\cmd;D:\software\nodejs;D:\software\yarn\bin;D:\software;C:\Users\MOMO\AppData\Local\Microsoft\WindowsApps;D:\sortware\wkhtmltopdf;C:\wamp\bin;D:\software\jdk\bin;D:\software\sdk\tools;C:\Users\MOMO\AppData\Roaming\npm;C:\Users\MOMO\AppData\Local\Yarn.bin

    Yarn version:
    0.17.8

    Node version:
    4.2.2

    Platform:
    win32 x64

    npm manifest:
    {"name":"douban","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: http://registry.npm.taobao.org/ajv/download/ajv-4.11.5.tgz: invalid tar file
    at Extract.Parse._startEntry (D:\software\yarn\node_modules\tar\lib\parse.js:149:13)
    at Extract.Parse._process (D:\software\yarn\node_modules\tar\lib\parse.js:131:12)
    at BlockStream.<anonymous> (D:\software\yarn\node_modules\tar\lib\parse.js:47:8)
    at emitOne (events.js:77:13)
    at BlockStream.emit (events.js:169:7)
    at BlockStream._emitChunk (D:\software\yarn\node_modules\block-stream\block-stream.js:145:10)
    at BlockStream.flush (D:\software\yarn\node_modules\block-stream\block-stream.js:70:8)
    at BlockStream.end (D:\software\yarn\node_modules\block-stream\block-stream.js:66:8)
    at Extract.Parse.end (D:\software\yarn\node_modules\tar\lib\parse.js:86:23)
    at UnpackStream.onend (_stream_readable.js:490:10)

    我是php开发,真的不擅长解决这种问题,help



  • @Wangxt93 说:

    Error: http://registry.npm.taobao.org/ajv/download/ajv-4.11.5.tgz: invalid tar file

    我只看到了这个文件打不开,但是不知道怎么搞



  • 刚才又试一遍,log这样。。

    Arguments:
    D:\software\nodejs\node.exe D:\software\yarn\bin\yarn.js add react-native --exact

    PATH:
    C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\IntelSGXPSW\bin\x64\Release;C:\Program Files\Intel\IntelSGXPSW\bin\win32\Release;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software;c:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\software\svn\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;D:\software\Git\cmd;D:\software\nodejs;D:\software\yarn\bin;D:\software;C:\Users\MOMO\AppData\Local\Microsoft\WindowsApps;D:\sortware\wkhtmltopdf;C:\wamp\bin;D:\software\jdk\bin;D:\software\sdk\tools;C:\Users\MOMO\AppData\Roaming\npm;C:\Users\MOMO\AppData\Local\Yarn.bin

    Yarn version:
    0.17.8

    Node version:
    4.2.2

    Platform:
    win32 x64

    npm manifest:
    {"name":"douban","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: http://registry.npm.taobao.org/rimraf/download/rimraf-2.6.1.tgz: invalid tar file
    at Extract.Parse._startEntry (D:\software\yarn\node_modules\tar\lib\parse.js:149:13)
    at Extract.Parse._process (D:\software\yarn\node_modules\tar\lib\parse.js:131:12)
    at BlockStream.<anonymous> (D:\software\yarn\node_modules\tar\lib\parse.js:47:8)
    at emitOne (events.js:77:13)
    at BlockStream.emit (events.js:169:7)
    at BlockStream._emitChunk (D:\software\yarn\node_modules\block-stream\block-stream.js:145:10)
    at BlockStream.flush (D:\software\yarn\node_modules\block-stream\block-stream.js:70:8)
    at BlockStream.end (D:\software\yarn\node_modules\block-stream\block-stream.js:66:8)
    at Extract.Parse.end (D:\software\yarn\node_modules\tar\lib\parse.js:86:23)
    at UnpackStream.onend (_stream_readable.js:490:10)


  • administrators

    没见过这个问题
    但你的node和yarn版本都有点低
    建议先升级node 再升级yarn和react-native-cli 再init试试



  • @sunnylqm
    hello,谢谢你,不过都升级了还是报错:

    D:\react>react-native init hello
    This will walk you through creating a new React Native project in D:\react\hello
    Using yarn v0.21.3
    Installing react-native...
    yarn add v0.21.3
    info No lockfile found.
    [1/4] Resolving packages...
    warning react-native > xcode > node-uuid@1.4.7: Use uuid module instead
    [2/4] Fetching packages...
    ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░error An unexpected error occurred: "http://registry.npm.taobao.org/babel-register/download/babel-register-6.24.0.tgz: Request failed "404 Not Found"".
    info If you think this is a bug, please open a bug report with the information provided in "D:\react\hello\yarn-error.log".
    info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
    { Error: Command failed: yarn add react-native --exact
    at checkExecSyncError (child_process.js:483:13)
    at execSync (child_process.js:523:13)
    at run (C:\Users\MOMO\AppData\Roaming\npm\node_modules\react-native-cli\index.js:294:5)
    at createProject (C:\Users\MOMO\AppData\Roaming\npm\node_modules\react-native-cli\index.js:249:3)
    at init (C:\Users\MOMO\AppData\Roaming\npm\node_modules\react-native-cli\index.js:200:5)
    at Object.<anonymous> (C:\Users\MOMO\AppData\Roaming\npm\node_modules\react-native-cli\index.js:153:7)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    error: null,
    cmd: 'yarn add react-native --exact',
    file: 'C:\WINDOWS\system32\cmd.exe',
    args:
    [ 'C:\WINDOWS\system32\cmd.exe',
    '/s',
    '/c',
    '"yarn add react-native --exact"' ],
    options:
    { stdio: [ [Object], [Object], [Object] ],
    shell: true,
    windowsVerbatimArguments: true,
    file: 'C:\WINDOWS\system32\cmd.exe',
    args:
    [ 'C:\WINDOWS\system32\cmd.exe',
    '/s',
    '/c',
    '"yarn add react-native --exact"' ],
    envPairs:
    [ 'ALLUSERSPROFILE=C:\ProgramData',
    'ANDROID_HOME=D:\software\sdk',
    'APPDATA=C:\Users\MOMO\AppData\Roaming',
    'CommonProgramFiles=C:\Program Files\Common Files',
    'CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files',
    'CommonProgramW6432=C:\Program Files\Common Files',
    'COMPUTERNAME=MOMO-HP',
    'ComSpec=C:\WINDOWS\system32\cmd.exe',
    'FP_NO_HOST_CHECK=NO',
    'HOMEDRIVE=C:',
    'HOMEPATH=\Users\MOMO',
    'JAVA_HOME=D:\software\jdk',
    'LOCALAPPDATA=C:\Users\MOMO\AppData\Local',
    'LOGONSERVER=\\MOMO-HP',
    'NUMBER_OF_PROCESSORS=4',
    'OneDrive=C:\Users\MOMO\OneDrive',
    'OnlineServices=Online Services',
    'OS=Windows_NT',
    'Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\IntelSGXPSW\bin\x64\Release\;C:\Program Files\Intel\IntelSGXPSW\bin\win32\Release\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software\;c:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\software\svn\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\software\Git\cmd;D:\software\yarn\bin;D:\software\nodejs\;D:\software;C:\Users\MOMO\AppData\Local\Microsoft\WindowsApps;D:\sortware\wkhtmltopdf;C:\wamp\bin;D:\software\jdk\bin;D:\software\sdk\tools;C:\Users\MOMO\AppData\Local\Yarn\.bin;C:\Users\MOMO\AppData\Roaming\npm',
    'PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC',
    'Platform=BNB',
    'platformcode=6U',
    'PROCESSOR_ARCHITECTURE=AMD64',
    'PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 78 Stepping 3, GenuineIntel',
    'PROCESSOR_LEVEL=6',
    'PROCESSOR_REVISION=4e03',
    'ProgramData=C:\ProgramData',
    'ProgramFiles=C:\Program Files',
    'ProgramFiles(x86)=C:\Program Files (x86)',
    'ProgramW6432=C:\Program Files',
    'PROMPT=$P$G',
    'PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\',
    'PUBLIC=C:\Users\Public',
    'RegionCode=APJ',
    'SESSIONNAME=Console',
    'SystemDrive=C:',
    'SystemRoot=C:\WINDOWS',
    'TEMP=C:\Users\MOMO\AppData\Local\Temp',
    'TMP=C:\Users\MOMO\AppData\Local\Temp',
    'USERDOMAIN=MOMO-HP',
    'USERDOMAIN_ROAMINGPROFILE=MOMO-HP',
    'USERNAME=MOMO',
    'USERPROFILE=C:\Users\MOMO',
    'VS110COMNTOOLS=D:\software\VS2012\Common7\Tools\',
    'windir=C:\WINDOWS',
    'windows_tracing_flags=3',
    'windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log' ] },
    envPairs:
    [ 'ALLUSERSPROFILE=C:\ProgramData',
    'ANDROID_HOME=D:\software\sdk',
    'APPDATA=C:\Users\MOMO\AppData\Roaming',
    'CommonProgramFiles=C:\Program Files\Common Files',
    'CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files',
    'CommonProgramW6432=C:\Program Files\Common Files',
    'COMPUTERNAME=MOMO-HP',
    'ComSpec=C:\WINDOWS\system32\cmd.exe',
    'FP_NO_HOST_CHECK=NO',
    'HOMEDRIVE=C:',
    'HOMEPATH=\Users\MOMO',
    'JAVA_HOME=D:\software\jdk',
    'LOCALAPPDATA=C:\Users\MOMO\AppData\Local',
    'LOGONSERVER=\\MOMO-HP',
    'NUMBER_OF_PROCESSORS=4',
    'OneDrive=C:\Users\MOMO\OneDrive',
    'OnlineServices=Online Services',
    'OS=Windows_NT',
    'Path=C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\IntelSGXPSW\bin\x64\Release\;C:\Program Files\Intel\IntelSGXPSW\bin\win32\Release\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software\;c:\Program Files\WIDCOMM\Bluetooth Software\syswow64;D:\software\svn\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\software\Git\cmd;D:\software\yarn\bin;D:\software\nodejs\;D:\software;C:\Users\MOMO\AppData\Local\Microsoft\WindowsApps;D:\sortware\wkhtmltopdf;C:\wamp\bin;D:\software\jdk\bin;D:\software\sdk\tools;C:\Users\MOMO\AppData\Local\Yarn\.bin;C:\Users\MOMO\AppData\Roaming\npm',
    'PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC',
    'Platform=BNB',
    'platformcode=6U',
    'PROCESSOR_ARCHITECTURE=AMD64',
    'PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 78 Stepping 3, GenuineIntel',
    'PROCESSOR_LEVEL=6',
    'PROCESSOR_REVISION=4e03',
    'ProgramData=C:\ProgramData',
    'ProgramFiles=C:\Program Files',
    'ProgramFiles(x86)=C:\Program Files (x86)',
    'ProgramW6432=C:\Program Files',
    'PROMPT=$P$G',
    'PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\',
    'PUBLIC=C:\Users\Public',
    'RegionCode=APJ',
    'SESSIONNAME=Console',
    'SystemDrive=C:',
    'SystemRoot=C:\WINDOWS',
    'TEMP=C:\Users\MOMO\AppData\Local\Temp',
    'TMP=C:\Users\MOMO\AppData\Local\Temp',
    'USERDOMAIN=MOMO-HP',
    'USERDOMAIN_ROAMINGPROFILE=MOMO-HP',
    'USERNAME=MOMO',
    'USERPROFILE=C:\Users\MOMO',
    'VS110COMNTOOLS=D:\software\VS2012\Common7\Tools\',
    'windir=C:\WINDOWS',
    'windows_tracing_flags=3',
    'windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log' ],
    stderr: null,
    stdout: null,
    pid: 2220,
    output: [ null, null, null ],
    signal: null,
    status: 1 }
    Command yarn add react-native --exact failed.


  • administrators

    "http://registry.npm.taobao.org/babel-register/download/babel-register-6.24.0.tgz: Request failed "404 Not Found"".

    有可能你的运营商/公司屏蔽了淘宝的域名?



  • @sunnylqm 说:

    http://registry.npm.taobao.org/babel-register/download/babel-register-6.24.0.tgz:

    我也挺奇怪的,点开链接是可以下载的
    0_1490150422336_QQ截图20170322104003.png


登录后回复