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

纵饮孤独 提交于 2019-12-02 20:40:49

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. :)

In my case both uglify-js and cssmin were somehow not installed.

So I have re-installed them again by using following command and then it starts working again.

sudo npm install -g cssmin uglify-js
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!