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

Cannot install Nodebb theme: npm install nobebb-theme-timuu

  • I am having read errors while trying to install a nodebb theme. Could you please help me resolve. The command is: npm install nobebb-theme-timuu

    See error below.-

    npm ERR! rofs EROFS: read-only file system, mkdir '/root/.npm/nodebb-theme-timuu'
    npm ERR! rofs This is most likely not a problem with npm itself
    npm ERR! rofs and is related to the file system being read-only.

  • Most of the docker container files and directories are read-only.

    Have you tried installing it in repair-mode?

  • Staff

    @chxmontoro Open a web terminal and

        cd /app/code
        /usr/local/bin/gosu cloudron:cloudron npm install nodebb-theme-timuu

    Then, restart NodeBB.

    BTW, the docs for this are here:

  • On this note, I'm trying to install nodebb-plugin-sso-open-ldap with

    /usr/local/bin/gosu cloudron:cloudron npm install nodebb-plugin-sso-open-ldap

    but then I get

    gyp WARN install got an error, rolling back install
    gyp ERR! configure error
    gyp ERR! stack Error: EROFS: read-only file system, mkdir '/home/cloudron/.node-gyp'
    gyp ERR! System Linux 4.4.0-166-generic
    gyp ERR! command "/usr/local/node-8.12.0/bin/node" "/usr/local/node-8.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /run/nodebb/node_modules/dtrace-provider
    gyp ERR! node -v v8.12.0
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok

    What should I do?

    Alternative question: Can we get built-in LDAP support in the app package?

  • Staff

    @yusf Would an LDAP enabled forum only allow LDAP users and have external registration disabled?

  • Staff

    @yusf said in Cannot install Nodebb theme: npm install nobebb-theme-timuu:

    /usr/local/bin/gosu cloudron:cloudron npm install nodebb-plugin-sso-open-ldap

    I have pushed an update

  • @girish Ideally, both auth mechanisms would be available for use. Or one or the other. I really like how it’s done in Gitea, where LDAP is just one authorization methods out of several.

Log in to reply