1. 程式人生 > >nodejs 最新版和wechat和vim8.0

nodejs 最新版和wechat和vim8.0

vim

```
    sudo apt-get remove vim
    sudo apt-get autoremove
    sudo add-apt-repository ppa:jonathonf/vim
    sudo apt-get update
    sudo install vim
```

nodejs

[nodejs](https://github.com/nodejs/node)
    ```
        cd ~
        git clone https://github.com/nodejs/node.git
        cd node
        sudo ./configure --perfix 目錄
        sudo make
        sudo make install
        cd 目錄/bin
        sudo cp node /user/local/bin/
        sudo ln -s 目錄/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm
    ```

wechat

[electronic-wechat](https://github.com/geeeeeeeeek/electronic-wechat)
    ```
        cd ~
        git clone https://github.com/geeeeeeeeek/electronic-wechat.git
        cd electronic-wechat
        npm install && npm start
    ```

後臺啟動wechat shell指令碼

```
    #!/bin/bash

    cd electronic-wechat && nohup npm start &
```