In a symfony2 project, I use assetic with a smaller filter. Everything is fine in the prod environmentnement, the assetic: dump command generates css file fixes. But when I draw the page in dev envrionnement, my css files tell me that less module could not be found. It looks like this:
[exception] 500 | Internal Server Error | Assetic\Exception\FilterException
[message] An error occurred while running:
"/usr/bin/node" "/tmp/assetic_lessb45F2E"
Error Output:
module.js:340
throw err;
^
Error: Cannot find module "less"
My config.yml seems good
assetic:
debug: %kernel.debug%
use_controller: false
filters:
cssrewrite: ~
less:
node: /usr/bin/node
node_paths: /usr/local/lib/node_modules
apply_to: "\.less$"
My project is served by Apache, launched by the www-data user.
I tried on chmod 777 the node_modules folder just in case.
loicb source
share