Vue项目用到phantomjs-prebuilt包时,直接安装可能会报错,如下图 解决方案 执行 npm install phantomjs-prebuilt@2.1.16 --ignore-scripts命令即可解决