0
0
mirror of https://github.com/tj/n.git synced 2024-11-21 18:48:57 +01:00

README - clearer show what directories are created under N_PREFIX

This commit is contained in:
Paul Verest 2021-09-23 15:04:00 +08:00 committed by GitHub
parent 47b417f0c1
commit b37b10e4a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: