Yuglify compressor can't find binary from package installed through npm

后端 未结 2 702
离开以前
离开以前 2021-02-02 14:23

I have a fresh virtualenv environment and have got the latest django-pipleline.

The JS compression with Closure works perfect, but CSS compression with Yuglify fails, du

2条回答
  •  无人共我
    2021-02-02 14:47

    After 3 hours of suffering, I have found the solution.

    This is happening because of a misnaming error, if you install from a package manager (npm) your bin may be called nodejs so you just need to symlink it like this:

    ln -s /usr/bin/nodejs /usr/bin/node
    

    Now it is working. This didn't happen with the older version, its is something new. But at least it is working again. I hope this helps someone else out there. :)

提交回复
热议问题