yuglify

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

放肆的年华 提交于 2019-12-03 07:58:37
问题 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, due a node error: STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.closure.ClosureCompressor' PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor' When I try to collect the static: ./manage.py collectstatic It says: pipeline.compressors

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

纵饮孤独 提交于 2019-12-02 20:40:49
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, due a node error: STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.closure.ClosureCompressor' PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor' When I try to collect the static: ./manage.py collectstatic It says: pipeline.compressors.CompressorError: /usr/bin/env: node: No such file or directory But I have clearly installed yuglify even as