Please enable NPM in SSH when we are using application SSH user
Currently, application SSH user does not have such permissions to run NPM via ssh. But this feature should be available
Please enable NPM in SSH when we are using application SSH user

-
Darío Ruellan commented
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_userBut for that you need to store the master user password, that might be a security risk.
-
isaac commented
After *four* years this still isn't possible. This is a significant limitation, especially as it related to Git commands. PLEASE fix this.