安装reactnative 过程

Last login: Sun Jun  5 09:00:07 on ttys001
chengchuandeMacBook-Pro:~ skycc$ brew
Please run brew update!
chengchuandeMacBook-Pro:~ skycc$ brew -v
Homebrew 0.9.8 (no git repository)
Homebrew/homebrew-core N/A
chengchuandeMacBook-Pro:~ skycc$ brew install wget
Error: Unknown command: install
chengchuandeMacBook-Pro:~ skycc$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
curl: (22) The requested URL returned error: 404 Not Found
chengchuandeMacBook-Pro:~ skycc$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/lib
/usr/local/Library
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/doc
==> The following directories will have their owner set to skycc:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/lib
/usr/local/Library
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/doc
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/lib
/usr/local/Library
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/doc

Press RETURN to continue or any other key to abort
chengchuandeMacBook-Pro:~ skycc$ brew install wget
Error: Unknown command: install
chengchuandeMacBook-Pro:~ skycc$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/lib
/usr/local/Library
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/doc
==> The following directories will have their owner set to skycc:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/lib
/usr/local/Library
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/doc
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/lib
/usr/local/Library
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/doc

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/etc /usr/local/lib /usr/local/Library /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/doc
Password:
==> /usr/bin/sudo /usr/sbin/chown skycc /usr/local/. /usr/local/bin /usr/local/etc /usr/local/lib /usr/local/Library /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/doc
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin /usr/local/etc /usr/local/lib /usr/local/Library /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/doc
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown skycc /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 491, done.
remote: Compressing objects: 100% (445/445), done.
remote: Total 491 (delta 27), reused 325 (delta 17), pack-reused 0
Receiving objects: 100% (491/491), 770.73 KiB | 265.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
From https://github.com/Homebrew/brew
 * [new branch]      master     -> origin/master
error: unable to unlink old '.github/CONTRIBUTING.md' (Permission denied)
error: unable to unlink old '.github/ISSUE_TEMPLATE.md' (Permission denied)
error: unable to unlink old '.github/PULL_REQUEST_TEMPLATE.md' (Permission denied)
error: unable to create symlink Library/ENV/3.2.6 (Permission denied)
error: unable to create symlink Library/ENV/4.2 (Permission denied)
fatal: cannot create directory at 'Library/ENV/4.3': Permission denied
Failed during: git reset --hard origin/master
chengchuandeMacBook-Pro:~ skycc$ brew -v
Homebrew 0.9.8 (no git repository)
Homebrew/homebrew-core N/A
chengchuandeMacBook-Pro:~ skycc$ brew install wget
Error: Unknown command: install
chengchuandeMacBook-Pro:~ skycc$ cd 'brew --prefix'
-bash: cd: brew --prefix: No such file or directory
chengchuandeMacBook-Pro:~ skycc$ where is brew
-bash: where: command not found
chengchuandeMacBook-Pro:~ skycc$ brew
Please run brew update!
chengchuandeMacBook-Pro:~ skycc$ brew -v
Homebrew 0.9.8 (no git repository)
Homebrew/homebrew-core N/A
chengchuandeMacBook-Pro:~ skycc$ cd `brew --prefix`
chengchuandeMacBook-Pro:local skycc$ rm -rf Cellar
chengchuandeMacBook-Pro:local skycc$ brew prune
Error: Unknown command: prune
chengchuandeMacBook-Pro:local skycc$ rm 'git ls-files'
rm: git ls-files: No such file or directory
chengchuandeMacBook-Pro:local skycc$ rm -rf Cellar
chengchuandeMacBook-Pro:local skycc$ brew prune
Error: Unknown command: prune
chengchuandeMacBook-Pro:local skycc$ rm `git ls-files`
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file
chengchuandeMacBook-Pro:local skycc$ rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
override rw-rw-r--  root/wheel for Library/Homebrew/blacklist.rb? rm -rf .git
rm -rf ~/Library/Caches/Homebrewoverride rw-rw-r--  root/wheel for Library/Homebrew/bottles.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/build.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/build_environment.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/build_options.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/caveats.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/checksum.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cleaner.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cleanup.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/--cellar.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/--prefix.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/--repository.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/command.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/commands.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/config.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/doctor.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/help.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/list.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/postinstall.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/search.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/tap.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/update-report.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cmd/update.sh?
override rwxrwxr-x  root/wheel for Library/Homebrew/cmd?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/dependency_collector.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/download_strategy.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/fails_with_llvm.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/formula.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/formula_specialties.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/hardware.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/keg.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/language/haskell.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/compat/language?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/macos.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/md5.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/pathname.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/requirements.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/sha1.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/tap.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compat/version.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/compat?
override rw-rw-r--  root/wheel for Library/Homebrew/compat.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/compilers.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/config.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/cxxstdlib.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/debrew/irb.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/debrew?
override rw-rw-r--  root/wheel for Library/Homebrew/debrew.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/dependable.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/dependencies.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/dependency.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/dependency_collector.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/descriptions.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/dev-cmd/update-test.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/dev-cmd?
override rw-rw-r--  root/wheel for Library/Homebrew/diagnostic.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/download_strategy.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/exceptions.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/ARGV.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/enumerable.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/ENV/shared.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/ENV/std.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/ENV/super.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/extend/ENV?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/ENV.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/fileutils.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/module.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/pathname.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/extend/string.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/extend?
override rw-rw-r--  root/wheel for Library/Homebrew/formula.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_assertions.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_cellar_checks.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_installer.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_lock.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_pin.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_renames.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_support.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/formula_versions.rb? y
rm: Library/Homebrew/formula_versions.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/formulary.rb? y
rm: Library/Homebrew/formulary.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/global.rb? y
rm: Library/Homebrew/global.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/hardware.rb? y
rm: Library/Homebrew/hardware.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/hooks/bottles.rb? y
rm: Library/Homebrew/hooks/bottles.rb: Permission denied
override rwxrwxr-x  root/wheel for Library/Homebrew/hooks? y
rm: Library/Homebrew/hooks: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/install_renamed.rb? y
rm: Library/Homebrew/install_renamed.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/keg.rb? y
rm: Library/Homebrew/keg.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/keg_relocate.rb? y
rm: Library/Homebrew/keg_relocate.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/language/go.rb? y
rm: Library/Homebrew/language/go.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/language/haskell.rb? y
rm: Library/Homebrew/language/haskell.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/language/java.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/language/python.rb? y
rm: Library/Homebrew/language/python.rb: Permission denied
override rwxrwxr-x  root/wheel for Library/Homebrew/language? y
rm: Library/Homebrew/language: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/ld64_dependency.rb? y
rm: Library/Homebrew/ld64_dependency.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/metafiles.rb? y
rm: Library/Homebrew/metafiles.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/migrate_remote.rb? y
rm: Library/Homebrew/migrate_remote.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/migrator.rb? y
rm: Library/Homebrew/migrator.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/official_taps.rb? y
rm: Library/Homebrew/official_taps.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/options.rb? y
rm: Library/Homebrew/options.rb: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/os/linux/hardware.rb? y
rm: Library/Homebrew/os/linux/hardware.rb: Permission denied
override rwxrwxr-x  root/wheel for Library/Homebrew/os/linux? yyy
rm: Library/Homebrew/os/linux: Permission denied
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/architecture_list.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/cctools_keg.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/cctools_mach.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/hardware.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/keg.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/pathname.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/ruby_keg.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/ruby_mach.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/sdk.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/version.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/xcode.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac/xquartz.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/os/mac?
override rw-rw-r--  root/wheel for Library/Homebrew/os/mac.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/os?
override rw-rw-r--  root/wheel for Library/Homebrew/os.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/patch.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/pkg_version.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/postinstall.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/apr_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/cctools_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/emacs_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/fortran_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/java_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/language_module_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/maximum_macos_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/minimum_macos_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/mpi_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/osxfuse_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/python_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/ruby_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/tuntap_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/unsigned_kext_requirement.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements/x11_requirement.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/requirements?
override rw-rw-r--  root/wheel for Library/Homebrew/requirements.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/resource.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/sandbox.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/software_spec.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/tab.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/tap.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/tap_constants.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/tap_migrations.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/test.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/utils/fork.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/utils/git.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/utils/inreplace.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/utils/json.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/utils/popen.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/utils?
override rw-rw-r--  root/wheel for Library/Homebrew/utils.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/exceptions.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/fat_file.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/headers.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/load_commands.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/macho_file.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/open.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/sections.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/structure.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/tools.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho/utils.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/vendor/macho/macho?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/macho/macho.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew/vendor/macho?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/okjson.rb?
override rw-rw-r--  root/wheel for Library/Homebrew/vendor/README.md?
override rwxrwxr-x  root/wheel for Library/Homebrew/vendor?
override rw-rw-r--  root/wheel for Library/Homebrew/version.rb?
override rwxrwxr-x  root/wheel for Library/Homebrew?
rm: Library/Formula: No such file or directory
rm: Library/Contributions: No such file or directory
chengchuandeMacBook-Pro:local skycc$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew

Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
remote: Counting objects: 491, done.
remote: Compressing objects: 100% (445/445), done.
remote: Total 491 (delta 27), reused 325 (delta 17), pack-reused 0
Receiving objects: 100% (491/491), 770.73 KiB | 302.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
From https://github.com/Homebrew/brew
 * [new branch]      master     -> origin/master
error: unable to unlink old '.github/CONTRIBUTING.md' (Permission denied)
error: unable to unlink old '.github/ISSUE_TEMPLATE.md' (Permission denied)
error: unable to unlink old '.github/PULL_REQUEST_TEMPLATE.md' (Permission denied)
error: unable to create symlink Library/ENV/3.2.6 (Permission denied)
error: unable to create symlink Library/ENV/4.2 (Permission denied)
fatal: cannot create directory at 'Library/ENV/4.3': Permission denied
Failed during: git reset --hard origin/master
chengchuandeMacBook-Pro:local skycc$ sudo chown -R $USER /usr/local
Password:
chengchuandeMacBook-Pro:local skycc$ cd /user/local
-bash: cd: /user/local: No such file or directory
chengchuandeMacBook-Pro:local skycc$ cd /skycc/local
-bash: cd: /skycc/local: No such file or directory
chengchuandeMacBook-Pro:local skycc$ ks
-bash: ks: command not found
chengchuandeMacBook-Pro:local skycc$ ls
CODEOFCONDUCT.md            include
LICENSE.txt                 lib
Library                     mysql
README.md                   mysql-5.6.25-osx10.8-x86_64
bin                         share
etc
chengchuandeMacBook-Pro:local skycc$ pwd
/usr/local
chengchuandeMacBook-Pro:local skycc$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
The current contents of /usr/local are bin CODEOFCONDUCT.md etc include lib Library LICENSE.txt mysql mysql-5.6.25-osx10.8-x86_64 README.md share .git .github .gitignore
chengchuandeMacBook-Pro:local skycc$ brew -v
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- global (LoadError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/Library/brew.rb:6:in `<main>'
chengchuandeMacBook-Pro:local skycc$
chengchuandeMacBook-Pro:local skycc$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Warning: This script will remove:
/Library/Caches/Homebrew/
/usr/local/.git/
/usr/local/.github/
/usr/local/.gitignore
/usr/local/.travis.yml
/usr/local/.yardopts
/usr/local/CODEOFCONDUCT.md
/usr/local/LICENSE.txt
/usr/local/Library/
/usr/local/README.md
/usr/local/bin/brew
/usr/local/share/doc/homebrew/
Are you sure you want to uninstall Homebrew? [y/N] y
==> Removing Homebrew installation...
==> Removing empty directories...
==> Homebrew uninstalled!
The following possible Homebrew files were not deleted:
/usr/local/bin/
/usr/local/include/
/usr/local/lib/
/usr/local/mysql -> /usr/local/mysql-5.6.25-osx10.8-x86_64
/usr/local/mysql-5.6.25-osx10.8-x86_64/
/usr/local/share/
You may consider to remove them by yourself.
You may want to restore /usr/local's original permissions
  sudo chmod 0755 /usr/local
  sudo chgrp wheel /usr/local

chengchuandeMacBook-Pro:local skycc$ brew -v
-bash: /usr/local/bin/brew: No such file or directory
chengchuandeMacBook-Pro:local skycc$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown skycc /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 491, done.
remote: Compressing objects: 100% (445/445), done.
remote: Total 491 (delta 27), reused 325 (delta 17), pack-reused 0
Receiving objects: 100% (491/491), 770.73 KiB | 171.00 KiB/s, done.
Resolving deltas: 100% (27/27), done.
From https://github.com/Homebrew/brew
 * [new branch]      master     -> origin/master
HEAD is now at d363ae5 doc/External-Commands: update default HOMEBREW_CACHE (#316)
==> Tapping homebrew/core
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 3714, done.
remote: Compressing objects: 100% (3596/3596), done.
remote: Total 3714 (delta 13), reused 2416 (delta 9), pack-reused 0
Receiving objects: 100% (3714/3714), 2.89 MiB | 731.00 KiB/s, done.
Resolving deltas: 100% (13/13), done.
Checking connectivity... done.
Tapped 3592 formulae (3,740 files, 9.0M)
==> Installation successful!
==> Next steps
Run `brew help` to get started
Further documentation: https://git.io/brew-docs
==> Homebrew has enabled anonymous aggregate user behaviour analytics
Read the analytics documentation (and how to opt-out) here:
  https://git.io/brew-analytics
chengchuandeMacBook-Pro:local skycc$ brew -v
Homebrew 0.9.9 (git revision d363; last commit 2016-06-04)
Homebrew/homebrew-core (git revision 668c; last commit 2016-06-04)
chengchuandeMacBook-Pro:local skycc$ brew install wget
==> Installing dependencies for wget: openssl
==> Installing wget dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2h_1.yosemite.b
######################################################################## 100.0%
==> Pouring openssl-1.0.2h_1.yosemite.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
?  /usr/local/Cellar/openssl/1.0.2h_1: 1,691 files, 12.0M
==> Installing wget
==> Downloading https://homebrew.bintray.com/bottles/wget-1.17.1.yosemite.bottle
######################################################################## 100.0%
==> Pouring wget-1.17.1.yosemite.bottle.1.tar.gz
?  /usr/local/Cellar/wget/1.17.1: 9 files, 1.5M
chengchuandeMacBook-Pro:local skycc$ brew install watchman
==> Installing dependencies for watchman: pcre
==> Installing watchman dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.38.yosemite.bottle.t
######################################################################## 100.0%
==> Pouring pcre-8.38.yosemite.bottle.tar.gz
?  /usr/local/Cellar/pcre/8.38: 203 files, 5.4M
==> Installing watchman
==> Downloading https://homebrew.bintray.com/bottles/watchman-4.5.0.yosemite.bot
######################################################################## 100.0%
==> Pouring watchman-4.5.0.yosemite.bottle.tar.gz
?  /usr/local/Cellar/watchman/4.5.0: 20 files, 344K
chengchuandeMacBook-Pro:local skycc$ brew install flow
==> Downloading https://homebrew.bintray.com/bottles/flow-0.26.0.yosemite.bottle
######################################################################## 100.0%
==> Pouring flow-0.26.0.yosemite.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
?  /usr/local/Cellar/flow/0.26.0: 7 files, 4.7M
chengchuandeMacBook-Pro:local skycc$ sudo npm install -g react-native-cli
Password:
/usr/local/bin/react-native -> /usr/local/lib/node_modules/react-native-cli/index.js
react-native-cli@1.0.0 /usr/local/lib/node_modules/react-native-cli
├── semver@5.1.0
├── minimist@1.2.0
├── chalk@1.1.3 (escape-string-regexp@1.0.5, ansi-styles@2.2.1, supports-color@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.1)
└── prompt@0.2.14 (revalidator@0.1.8, pkginfo@0.4.0, read@1.0.7, winston@0.8.3, utile@0.2.1)
chengchuandeMacBook-Pro:local skycc$ react-natvie init helloworld
-bash: react-natvie: command not found
chengchuandeMacBook-Pro:local skycc$ react-native innit helloworld
Command `innit` unrecognized. Did you mean to run this inside a react-native project?
chengchuandeMacBook-Pro:local skycc$ react-native init helloworld
This will walk you through creating a new React Native project in /usr/local/helloworld
Installing react-native package from npm...

转载于:https://www.cnblogs.com/skycc/p/5560115.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值