kriswallsmith / assetic

Asset Management for PHP
MIT License
3.75k stars 555 forks source link

node: Permission denied #865

Open pensiero opened 6 years ago

pensiero commented 6 years ago

Hi, I used assetic for a long time with an Ubuntu docker image + NVM, and it worked fine. However, I'm trying to use now the standard php docker image and when I run the app it says:

<b>Fatal error</b>:  Uncaught Assetic\Exception\FilterException: An error occurred while running:
--
  | '/usr/local/bin/node' 'node_modules/.bin/uglifyjs' '-o' '/tmp/assetic_uglifyjs2_outdTqML7' '/tmp/assetic_uglifyjs2_in4ywEFa'
  |  
  | Error Output:
  | sh: 1: /usr/local/bin/node: Permission denied

I do not expect anybody to solve the problem here, it depends for sure by the specific docker image, but in order to understand what is causing the problem, I need to understand who and where is calling the node bin.

Any hint about the methods used?

Thanks