Compare commits

...

4 Commits

Author SHA1 Message Date
AJ ONeal 3e7745177f Merge branch 'master' of ssh://git.coolaj86.com:22042/coolaj86/node-installer.sh 2017-11-07 04:46:22 -07:00
AJ ONeal 90cdb8f93e Merge branch 'v1' 2017-11-06 13:21:19 -07:00
AJ ONeal e9c21e3063 Merge branch 'master' of ssh://git.coolaj86.com:22042/coolaj86/node-installer.sh 2017-11-03 15:21:35 -06:00
AJ ONeal d3069471e7 Options 2017-11-03 21:16:35 +00:00
1 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@ wget -nv bit.ly/node-installer -O - ./node-installer.sh; bash ./node-installer.s
[How to Setup a VPS for node.js Development](https://www.youtube.com/watch?v=ypjzi1axH2A) - [(3:06 installing node.js](https://www.youtube.com/watch?v=ypjzi1axH2A#t=186)) [How to Setup a VPS for node.js Development](https://www.youtube.com/watch?v=ypjzi1axH2A) - [(3:06 installing node.js](https://www.youtube.com/watch?v=ypjzi1axH2A#t=186))
## Choosing a specific version ## Options
### Choosing a specific version
```bash ```bash
echo "Current node.js version is $(curl -fsSL https://nodejs.org/dist/index.tab | head -2 | tail -1 | cut -f 1)" echo "Current node.js version is $(curl -fsSL https://nodejs.org/dist/index.tab | head -2 | tail -1 | cut -f 1)"
@ -43,7 +45,7 @@ echo "Current node.js version is $(curl -fsSL https://nodejs.org/dist/index.tab
echo "v8.9.0" > /tmp/NODEJS_VER echo "v8.9.0" > /tmp/NODEJS_VER
``` ```
## Choosing an install location ### Choosing an install location
Just set BOTH `NODE_PATH` and `NPM_CONFIG_PREFIX`. Just set BOTH `NODE_PATH` and `NPM_CONFIG_PREFIX`.
The install path will be the preceding `lib/node_modules` The install path will be the preceding `lib/node_modules`