Darío Ruellan
My feedback
4 results found
-
37 votes
Darío Ruellan supported this idea ·
-
4 votes
Darío Ruellan supported this idea ·
-
6 votes
An error occurred while saving the comment Darío Ruellan supported this idea ·
-
68 votes
Darío Ruellan supported this idea ·
The issue is that NPM at application level is trying to create the cache folder in /home/{server}/{app} and the application user does not have the required credentials outside the pulbic_html folder.
You can't even redirect the cache to another folder, since for that it requires to create a .npmrc file in that folder, and again, the user does not have permissions.
A workaround is to substitute the user using:
su -c "npm install" master_user
But for that you need to store the master user password, that might be a security risk.