Skip to content

Commit 6ae0524

Browse files
committed
update node install instructions. Closes #682
1 parent 9a7e46b commit 6ae0524

File tree

2 files changed

+13415
-12
lines changed

2 files changed

+13415
-12
lines changed

docs/install.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,14 @@ npm install --save luxon
4343
const { DateTime } = require("luxon");
4444
```
4545

46-
If you want to work with locales, you'll need to have `full-icu` support installed in Node. You can [build Node with it](https://github.com/nodejs/node/wiki/Intl), use an [NPM module](https://www.npmjs.com/package/full-icu) to provide it, or find it prepackaged for your platform, like `brew install node --with-full-icu`. If you skip this step, Luxon still works but methods like `setLocale()` will do nothing.
46+
If you want to work with locales, you need ICU support:
4747

48-
The instructions for using full-icu as a package are a little confusing. Node can't automatically discover that you've installed the it, so you need to tell it where to find the data, like this:
48+
1. **For Node 13+, it comes built-in, no action necessary**
49+
2. For older Nodes, you need to install it yourself:
50+
1. Install a build of Node with full ICU baked in, such as via nvm: nvm install <version> -s --with-intl=full-icu --download=all or brew: brew install node --with-full-icu
51+
2. Install the ICU data externally and point Node to it. The instructions on how to do that are below.
52+
53+
The instructions for using full-icu as a package are a little confusing. Node can't automatically discover that you've installed it, so you need to tell it where to find the data, like this:
4954

5055
```
5156
npm install full-icu

0 commit comments

Comments
 (0)