运行拼图时在Win10中遇到Cgywin错误

时间:2018-12-19 00:41:10

标签: php jigsaw

尝试运行tailwindcss文档,它使用竖锯,并且我正在运行win10,但我得到我们使用Windows php在Cgywin中,因此必须转换路径

当我键入此命令时:

$ php vendor/bin/jigsaw serve

我明白了

dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../tightenco/jigsaw" && pwd)

if [ -d /proc/cygdrive ] && [[ $(which php) == $(readlink -n /proc/cygdrive)/* ]]; then
   # We are in Cgywin using Windows php, so the path must be translated
   dir=$(cygpath -m "$dir");
fi

"${dir}/jigsaw" "$@"

0 个答案:

没有答案