我刚刚在ubuntu 16.04中安装了phantomjs 2.1.1,具体步骤如下:
sudo apt-get install nodejs sudo apt-get install nodejs-legacy sudo apt-get install npm sudo npm -g install phantomjs-prebuilt