update installer examples

This commit is contained in:
AJ ONeal 2018-06-14 21:10:05 +00:00
parent 62bc523d03
commit c747edb99a
1 changed files with 9 additions and 2 deletions

View File

@ -86,10 +86,17 @@ The install path will be the preceding `lib/node_modules`
(which you usually want to be the same as `NPM_CONFIG_PREFIX` anyway). (which you usually want to be the same as `NPM_CONFIG_PREFIX` anyway).
```bash ```bash
export NPM_CONFIG_PREFIX=/tmp/user/local export NPM_CONFIG_PREFIX=/tmp/usr/local
export NODE_PATH=/tmp/user/local/lib/node_modules export NODE_PATH=/tmp/usr/local/lib/node_modules
``` ```
A more realistic example for a self-contained node app:
```bash
export NPM_CONFIG_PREFIX=/opt/my-app
export NODE_PATH=/opt/my-app/lib/node_modules
```
```bash ```bash
curl -fsSL https://bit.ly/node-installer -o ./node-installer.sh; bash ./node-installer.sh --dev-deps curl -fsSL https://bit.ly/node-installer -o ./node-installer.sh; bash ./node-installer.sh --dev-deps
``` ```