选择一个合适的版本,目前针对系统内核2.6.32-431.el6.x86_64,目前发现采用node-v7.0.0-linux-x64是可以的
# 1、下载&解压
```bash
wget https://nodejs.org/dist/v7.0.0/node-v7.0.0-linux-x64.tar.gz --no-check-certificate
tar xvzf node-v13.10.0-linux-x64.tar.gz
```
# 2、设置全局,这一步要先做。不能直接./npm,有依赖
```bash
sudo ln -s /usr/local/node-v7.0.0-linux-x64/bin/node /usr/local/bin/node
sudo ln -s /usr/local/node-v7.0.0-linux-x64/bin/npm /usr/local/bin/npm
```
# 3、安装cnpm
```bash
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
sudo ln -s /usr/local/node-v7.0.0-linux-x64/bin/cnpm /usr/local/bin/cnpm
```
# 4、安装依赖
```bash
cnpm i 或者 cnpm install
```
# 5、在相应的文件夹内拉取svn文件
```bash
svn checkout svn://192.168.1.15/DUB-V1.0/trunk/program/source/dub-front-end/dub-webapp-shenzhen/ --username dongye --password dongye22
```
# 6、打包
```bash
cnpm run build
```