Replace static nodejs version with bash variable
This commit is contained in:
parent
85c82fd56b
commit
e43b4c4d13
@ -4,8 +4,11 @@ Install Node.js for Javascript auto-completion in Vim 8.
|
|||||||
|
|
||||||
## Install binary release from repositories
|
## Install binary release from repositories
|
||||||
|
|
||||||
|
Check [release information](https://nodejs.org/en/download/) for the appropriate version.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -qO nodejs.tar.xz https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.xz \
|
VERSION=
|
||||||
|
wget -qO nodejs.tar.xz "https://nodejs.org/dist/$VERSION/node-$VERSION-linux-x64.tar.xz" \
|
||||||
&& tar -C $HOME/.local/ -xf nodejs.tar.xz \
|
&& tar -C $HOME/.local/ -xf nodejs.tar.xz \
|
||||||
&& rm -rf $HOME/.local/nodejs \
|
&& rm -rf $HOME/.local/nodejs \
|
||||||
&& mv $HOME/.local/node* $HOME/.local/nodejs \
|
&& mv $HOME/.local/node* $HOME/.local/nodejs \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user