wget는 정말 편리한 명령줄 유틸리티지만, 안타깝게도 OS X에는 포함되지 않았다. 물론 Curl은 적절한 대체물이 될 수 있지만, 종종 wget로 스크립트가 쓰여지고, curl을 사용하는 것으로 변환하는 것은 어렵고 시간이 오래 걸릴 수 있어서 wget이 선호되는 경향이 있다.
homebrew로 wget을 설치하면 된다.
1
!brew install wget
Updating Homebrew...
[34m==>[0m [1mAuto-updated Homebrew![0m
Updated 2 taps (homebrew/core and homebrew/cask).
[34m==>[0m [1mUpdated Formulae[0m
plenv postgresql@11 swiftformat tomee-webprofile
postgresql postgresql@9.5 tomee-plume
postgresql@10 postgresql@9.6 tomee-plus
[34m==>[0m [1mUpdated Casks[0m
cryo switchresx
[33mWarning:[0m wget 1.20.3_2 is already installed and up-to-date
To reinstall 1.20.3_2, run `brew reinstall wget`
Uninstalling node... (4,660 files, 60.3MB)
[31mError:[0m Refusing to uninstall /usr/local/Cellar/icu4c/66.1
because it is required by graphviz, harfbuzz and pango, which are currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies icu4c
Unlinking /usr/local/Cellar/icu4c/66.1... 0 symlinks removed
[33mWarning:[0m Refusing to link macOS provided/shadowed software: icu4c
If you need to have icu4c first in your PATH run:
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> /Users/wglee/.bash_profile
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> /Users/wglee/.bash_profile
For compilers to find icu4c you may need to set:
export LDFLAGS="-L/usr/local/opt/icu4c/lib"
export CPPFLAGS="-I/usr/local/opt/icu4c/include"
Updating Homebrew...
[34m==>[0m [1mDownloading https://homebrew.bintray.com/bottles/node-14.3.0.catalina.bottle[0m
[34m==>[0m [1mDownloading from https://akamai.bintray.com/e3/e34c4c25365bc0f5cc245d791dd93[0m
######################################################################## 100.0%
[34m==>[0m [1mPouring node-14.3.0.catalina.bottle.tar.gz[0m
[34m==>[0m [1mCaveats[0m
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
[34m==>[0m [1mSummary[0m
🍺 /usr/local/Cellar/node/14.3.0: 4,659 files, 60.8MB
** 필자가 갑자기 hexo가 작동되지 않아 적잖이 당황하던 중 해결법을 찾아서 이것도 공유해.
!brew uninstall --force node
!brew uninstall icu4c && brew install icu4c
!brew unlink icu4c && brew link icu4c --force
!brew install node
노드 언인스톨 후 재설치하면 문제 없이 작동한다.
You need to set install_url to use ShareThis. Please set it in _config.yml.