Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved npm install in LAMP app

    Support
    2
    3
    187
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • yusf
      yusf last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff last edited by

        The LAMP app uses the www-data user. So /usr/local/bin/gosu www-data npm install should work,

        1 Reply Last reply Reply Quote 4
        • yusf
          yusf last edited by

          Ah, that did it. Thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB