【问题标题】:How to reference phantomjs in sbt for scala.js?如何在 sbt 中为 scala.js 引用 phantomjs?
【发布时间】:2016-05-09 04:40:24
【问题描述】:

在 scala.js (http://www.scala-js.org/tutorial/basic/) 的教程中,它说我需要在 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

【问题讨论】:

    标签: sbt phantomjs scala.js


    【解决方案1】:

    我自己想通了。

    $ vi ~/bash_profile
    

    添加路径设置命令:

    PATH=$PATH:/you_can_just_drag_the_bin_directory_here
    

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

    【讨论】:

      猜你喜欢
      • 2017-08-02
      • 2018-10-29
      • 1970-01-01
      • 2015-02-14
      • 2021-03-03
      • 2017-11-15
      • 2018-08-29
      • 2021-01-10
      • 1970-01-01
      相关资源
      最近更新 更多