在 Raspberry PI 上安装 Node.js.

要安装 v6.x,请更新软件包

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

使用 apt 包管理器

sudo apt-get install -y nodejs