为什么我得到错误'ln:创建符号链接失败'?

时间:2017-01-25 07:31:14

标签: phantomjs casperjs

我正在尝试通过手册http://docs.casperjs.org/en/latest/installation.html#installing-from-git从git安装casperjs 但我收到错误'ln:未能创建符号链接'/ usr / local / bin / casperjs':没有这样的文件或目录'。 请回答我,在这种情况下我该怎么办?我的操作系统是windows8。

2 个答案:

答案 0 :(得分:0)

您不需要在Windows上创建符号链接。只需将CasperJS bin目录添加到%PATH% environment variable

即可

答案 1 :(得分:0)

命令“ln -sf pwd / bin / casperjs / usr / local / bin / casperjs”适用于linux系统,不适用于Windows。
您必须在Windows中设置环境变量并将casperjs / bin目录添加到路径中。有关详细信息,请参阅本文https://superuser.com/questions/284342/what-are-path-and-other-environment-variables-and-how-can-i-set-or-use-them