Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
phantomjs:未找到命令_Phantomjs_Sh - Fatal编程技术网

phantomjs:未找到命令

phantomjs:未找到命令,phantomjs,sh,Phantomjs,Sh,我使用本文提供的代码捕获角度页面的快照,但是当我尝试运行 ./make-snapshot.sh http://localhost:5757/#!/home 我得到了错误 phantomjs: command not found 以下是该文件的内容: U=$1 P=$( echo "$U" | perl -MURI -le 'chomp($url = <>); print URI->new($url)->fragment' ) final_url=$U P=${P:1}

我使用本文提供的代码捕获角度页面的快照,但是当我尝试运行

./make-snapshot.sh http://localhost:5757/#!/home
我得到了错误

phantomjs: command not found
以下是该文件的内容:

U=$1
P=$( echo "$U" | perl -MURI -le 'chomp($url = <>); print URI->new($url)->fragment' )
final_url=$U
P=${P:1}
final_path=./snapshots$P.html
phantomjs .phantomjs-runner.js $final_url > $final_path
U=$1
P=$(echo“$U”| perl-MURI-le'chomp($url=);print URI->new($url)->fragment')
最终url=$U
P=${P:1}
最终路径=./snapshots$P.html
phantomjs.phantomjs-runner.js$final\u url>$final\u路径
有关这方面的更多细节

phantomjs在我的终端上工作


问题是,当我克隆此repo时,它从未下载文件.phantom-runner.js

现在可以了