Compare commits

..

No commits in common. "3e7745177f88b0f5c63ffbd2451bd98c22fbe841" and "5d39eef14351466ddbef79e8d85d66736aa18bf9" have entirely different histories.

1 changed files with 2 additions and 4 deletions

View File

@ -31,9 +31,7 @@ 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))
## Options ## Choosing a specific version
### 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)"
@ -45,7 +43,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`