debain 安装nodejs
apt-get update -y
apt-get install -y build-essential curl
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install nodejs
npm install -g cnpm --registry=https://registry.npm.taobao.org
可选:apt-get install git-core curl build-essential openssl libssl-dev