From c747edb99aaef7505dbf9704303bcdb9360eacd1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 14 Jun 2018 21:10:05 +0000 Subject: [PATCH] update installer examples --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 083b478..e14c0fa 100644 --- a/README.md +++ b/README.md @@ -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). ```bash -export NPM_CONFIG_PREFIX=/tmp/user/local -export NODE_PATH=/tmp/user/local/lib/node_modules +export NPM_CONFIG_PREFIX=/tmp/usr/local +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 curl -fsSL https://bit.ly/node-installer -o ./node-installer.sh; bash ./node-installer.sh --dev-deps ```