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

posted @ 2018-03-14 12:40  sivkun  阅读(137)  评论(0编辑  收藏  举报