如何在scala.js的sbt中引用phantomjs?

如何在scala.js的sbt中引用phantomjs?,sbt,phantomjs,scala.js,Sbt,Phantomjs,Scala.js,在scala.js()的教程中,它说我需要在phantomjs而不是Node.js中运行代码 但是下载的phantomjs是一个可执行文件。如何在build.sbt中引用它 下面是我现在吃的东西 [trace] Stack trace suppressed: run last compile:run for the full output. [error] (compile:run) java.io.IOException: Cannot run program "phantomjs": err

在scala.js()的教程中,它说我需要在phantomjs而不是Node.js中运行代码

但是下载的phantomjs是一个可执行文件。如何在build.sbt中引用它

下面是我现在吃的东西

[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) java.io.IOException: Cannot run program "phantomjs": error=2, No such file or directory

我自己想出来的

$ vi ~/bash_profile
添加路径设置命令:

PATH=$PATH:/you_can_just_drag_the_bin_directory_here

关闭终端并重新打开。完成。

我自己想出来的

$ vi ~/bash_profile
添加路径设置命令:

PATH=$PATH:/you_can_just_drag_the_bin_directory_here
关闭终端并重新打开。完成了