你有安装 npm 吗?如果没有,那么您需要先运行几个命令。(免责声明我即将列出的命令适用于 Ubuntu 16.04,可能适用于 Raspbian,也可能不适用。简单的谷歌搜索将为您提供 Raspbian 等价物,但我将把研究留给您。)
'#' 是注释,并不意味着在命令行中输入。
sudo apt-get update #will update your machine
sudo apt-get upgrade #will upgrade your machine
sudo apt-get install npm #will install npm on your machine
sudo npm install screeps #will use npm to install screeps
screeps init #should be preformed in the directory you want to run screeps in and the current user has read/write/execute privileges
screeps start # will start your screeps server
最后一个命令可以替换为
screeps start --host x.x.x.x
#'x' 表示树莓派的 ip,以便它知道它将在哪里接收请求