我有一个新的virtualenv环境,并已得到了最新的Django pipleline。
该JS压缩用封完美的作品,但Yuglify CSS压缩失败,因为一个节点的错误:
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.closure.ClosureCompressor'
PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor'
当我尝试搜集静:
./manage.py collectstatic
它说:
pipeline.compressors.CompressorError: /usr/bin/env: node: No such file or directory
但我已经清楚地安装yuglify即使全球:
sudo npm -g install yuglify
/usr/local/bin/yuglify -> /usr/local/lib/node_modules/yuglify/bin/yuglify
yuglify@0.1.2 /usr/local/lib/node_modules/yuglify
├── uglify-js@1.3.4
├── ycssmin@1.0.1
└── nopt@2.1.1
试图设置的设置不利于无论是biney:
PIPELINE_YUGLIFY_BINARY = '/usr/local/bin/yuglify'
我仍然得到同样的错误。 为什么现在这样的问题,NPM? 有什么我必须设置额外?
或者是有与PIP安装yuglify的方法吗?
非常感谢,