Solved npm install in LAMP app
-
I'm trying to install nodejs stuff in the LAMP stack with
/usr/local/bin/gosu cloudron:cloudron npm install
. I get this error:Unhandled rejection Error: EROFS: read-only file system, mkdir '/home/cloudron/.npm'
How can I use npm in the LAMP app?
-
The LAMP app uses the
www-data
user. So/usr/local/bin/gosu www-data npm install
should work, -
Ah, that did it. Thank you!