1. 更新系统

1

2

sudo apt-get update

sudo apt-get install git-core curl build-essential openssl libssl-dev

 2. 安装Node.js

     首先我们先从github上将Node.js库克隆到本地:

1

2

$ git clone https://github/nodejs/node.git

cd node

 3. 编译和安装Node:

1

2

3

$ ./configure

make

sudo make install

    安装完毕,可以在命令行里面输入以下命令以便确认Node是否安装完毕:

1

2

$ node -v

v0.10.33

    这个命令会输出你安装Node版本信息,如果你电脑上面输出和下面的类似,那恭喜你了,安装Node成功。

4. 安装npm

    这个很简单,NPM官方提供了安装NPM的脚本,所以我们把这个脚本下载下来执行一下就可以:

1

2

3

4

5

$ wget https://npmjs/install.sh --no-check-certificate

chmod 777 install.sh

$ ./install.sh

$ npm -v

2.7.6

   如果输入npm -v,返回的是一个类似上面的版本信息,那么NPM也就安装成功了!

5. 安装wechat

1

2

3

4

5

6

# Clone this repository

git clone https://github/geeeeeeeeek/electronic-wechat.git

# Go into the repository

cd electronic-wechat

# Install dependencies and run the app

npm install && npm start

   如果要打包成一个应用程序,按照自己的平台执行以下之一:

1

2

3

4

npm run build:osx

npm run build:linux

npm run build:win32

npm run build:win64

更多推荐

linux系统上安装微信(Ubuntu/Debian 微信安装)