22 lines
481 B
Markdown
22 lines
481 B
Markdown
# Node.js
|
|
|
|
Install Node.js for Javascript auto-completion in Vim 8.
|
|
|
|
## Install binary release from repositories
|
|
|
|
```bash
|
|
wget -qO nodejs.tar.xz https://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.xz \
|
|
&& tar -C $HOME/.local/ -xf nodejs.tar.xz \
|
|
&& mv $HOME/.local/node* $HOME/.local/nodejs \
|
|
&& rm nodejs.tar.xz
|
|
```
|
|
|
|
## Set up environment variables
|
|
|
|
```bash
|
|
cat << EOF >> $HOME/.bashrc
|
|
export NODE_PATH=\$HOME/.local/nodejs
|
|
export PATH=\$PATH:\$NODE_PATH/bin
|
|
EOF
|
|
```
|