From b37b10e4a19cc5800a21f524325329fda60ac708 Mon Sep 17 00:00:00 2001 From: Paul Verest Date: Thu, 23 Sep 2021 15:04:00 +0800 Subject: [PATCH] README - clearer show what directories are created under N_PREFIX --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 142846f..ef00018 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,9 @@ If you already have Node.js installed, an easy way to install `n` is using `npm` npm install -g n -Once installed, `n` caches Node.js versions in subdirectory `n/versions` of the directory specified in environment variable `N_PREFIX`, which defaults to `/usr/local`; and the _active_ Node.js version is installed under `N_PREFIX`. +Once installed, `n` caches Node.js versions in subdirectory `n/versions` of the directory specified in environment variable `N_PREFIX`, which defaults to `/usr/local`. + +The _active_ Node.js version is installed under `N_PREFIX`. (This creates subdirectories `bin`, `include`, `lib` and `share`.) To avoid requiring `sudo` for `n` and `npm` global installs, it is suggested you either install to your home directory using `N_PREFIX`, or take ownership of the system directories: