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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Directus
  3. cannot install Directus CLI

cannot install Directus CLI

Scheduled Pinned Locked Moved Directus
14 Posts 6 Posters 2.0k Views 6 Watching
  • 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.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #5

    The cli would have to be installed in the package just like any other node module as such. From https://www.npmjs.com/package/directus-template-cli it seems that this is still some proof of concept code with various side-effects. So not sure if we want to include this in the package. Since I haven't properly used directus, I am also not sure what exactly those templates in the context of directus are and for the actual AgencyOS it looks like a whole separate app package if we want to have that.

    1 Reply Last reply
    0
    • micmcM micmc

      I'm trying to install AgencyOS on my Directus instance.

      I need to isntall the CLI:

      # npx directus-template-cli@latest apply
      

      Only, I get the following err without it going any further.

      npm ERR! code EROFS
      npm ERR! syscall open
      npm ERR! path /root/.npm/_cacache/tmp/198c5497
      npm ERR! errno -30
      npm ERR! rofs EROFS: read-only file system, open '/root/.npm/_cacache/tmp/198c5497'
      npm ERR! rofs Often virtualized file systems, or other file systems
      npm ERR! rofs that don't support symlinks, give this error.
      
      npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
      npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
      

      I see some apparently have been able to run Directus CLI, so something may have changed recently? They've very active in dev in 2023.
      Directus v. 10.8.2

      J Offline
      J Offline
      JLX89
      wrote on last edited by
      #6

      @micmc I worked through this and got everything working in the past. I had to install the directus-cli on my local machine and use something like Visual Studio Code or similar program to connect to my Directus instance hosted inside Cloudron, to run the AgencyOS importer.

      Separate from that, I forked the "AgencyOS" code base to a private Github repo and published using Vercel for the frontend.

      Based on my experience, because anything outside of /app/data/ on Cloudron is read only, I had to break apart the AgencyOS frontend and then just connect back to Directus.

      I'd be aware, AgencyOS is still under active development and it was created as more of a proof of concept, so in my experience you're bound have quite a few issues. But I got it working in the past, but take lots and lots of backups for both the frontend and your directus instance.

      1 Reply Last reply
      0
      • JeyakumarrathnaselviJ Offline
        JeyakumarrathnaselviJ Offline
        Jeyakumarrathnaselvi
        wrote on last edited by
        #7

        is this solved

        nebulonN 1 Reply Last reply
        0
        • JeyakumarrathnaselviJ Jeyakumarrathnaselvi

          is this solved

          nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #8

          I am not sure what there was to solve. @Jeyakumarrathnaselvi what is your issue?

          1 Reply Last reply
          0
          • JeyakumarrathnaselviJ Offline
            JeyakumarrathnaselviJ Offline
            Jeyakumarrathnaselvi
            wrote on last edited by
            #9

            I get this error

            npm ERR! code EROFS
            npm ERR! syscall open
            npm ERR! path /root/.npm/_cacache/tmp/198c5497
            npm ERR! errno -30
            npm ERR! rofs EROFS: read-only file system, open '/root/.npm/_cacache/tmp/198c5497'
            npm ERR! rofs Often virtualized file systems, or other file systems
            npm ERR! rofs that don't support symlinks, give this error.

            npm ERR! Log files were not written due to an error writing to the directory: /root/.npm/_logs
            npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #10

              I guess you want to use directus CLI on the client ? https://docs.directus.io/self-hosted/cli.html#client ?If so, this can be installed on your PC/laptop and not on the server.

              1 Reply Last reply
              0
              • JeyakumarrathnaselviJ Offline
                JeyakumarrathnaselviJ Offline
                Jeyakumarrathnaselvi
                wrote on last edited by
                #11

                No I am trying to install agency OS functionalities on directus setup as per following. https://github.com/directus-labs/agency-os using

                npx directus-template-cli@latest apply

                but throwing error I mentioned

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #12

                  I don't think agency OS will work on the existing Cloudron package. We have to make a new package, maybe. As a disclaimer, I don't have much clue about agency OS. This is just my guess.

                  micmcM 1 Reply Last reply
                  1
                  • girishG girish

                    I don't think agency OS will work on the existing Cloudron package. We have to make a new package, maybe. As a disclaimer, I don't have much clue about agency OS. This is just my guess.

                    micmcM Offline
                    micmcM Offline
                    micmc
                    wrote on last edited by
                    #13

                    @girish said in cannot install Directus CLI:

                    I don't think agency OS will work on the existing Cloudron package. We have to make a new package, maybe. As a disclaimer, I don't have much clue about agency OS. This is just my guess.

                    Well, it's an app built WITH Directus, thus in theory it should work otherwise then what would be the other limits to using Directus on Cloudron?

                    Ignorance is not an excuse anymore!
                    https://AutomateKit.com

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      JLX89
                      wrote on last edited by
                      #14

                      I've confirmed the latest version works without issue, following the steps I've outlined before.

                      Essentially, Directus installed on Cloudron and hosting the frontend on another platform like Vercel (free plan).

                      You need to install the Directus CLI on your local computer, edit the .env file with your Directus "Service Account" and you can deploy this solution.

                      To be honest, based on it working, I would say another package with AgencyOS wouldn't be worthwhile once you get it deployed.

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search