[Node.js] brew install node したあとに表示される with-full-icu とは何か
memo.
インストール後にこんな表示が出ます。
Please note by default only English locale support is provided. If you need
full locale support you should:
`brew reinstall node --with-full-icu`
指示通りに実行すると ./configure --with-intl=full-icu
されたことが分かる。
% brew reinstall node --with-full-icu
==> Reinstalling node with --with-full-icu
==> Downloading https://nodejs.org/dist/v5.3.0/node-v5.3.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/node-5.3.0.tar.gz
==> Downloading https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz
Already downloaded: /Library/Caches/Homebrew/node--icu4c-56.1.tgz
==> ./configure --prefix=/usr/local/Cellar/node/5.3.0 --without-npm --with-intl=full-icu
==> make install
==> Downloading https://registry.npmjs.org/npm/-/npm-3.3.12.tgz
Already downloaded: /Library/Caches/Homebrew/node--npm-3.3.12.tgz
==> ./configure --prefix=/usr/local/Cellar/node/5.3.0/libexec/npm
==> make install
==> Caveats
Please note by default only English locale support is provided. If you need
full locale support you should:
`brew reinstall node --with-full-icu`
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/node/5.3.0: 2827 files, 59M, built in 10.3 minutes
./configure --with-intl=full-icu
とは。
Intl オブジェクトを使うと言語ロケールに依存した文字列比較、日付フォーマット、数値フォーマットができるようになる。