Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-146

problem to install tab-completition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Done
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Labels:
      None
    • Documentation update required:
      Yes
    • Sprint:
      Basel 122
    • Story Points:
      1

      Description

      I have installed CLI since beginning, so I am doing just updated to latest versions. At some point tab-completition stopped working. I tried to update to latest version today and install tab-completion again, here is what I got in terminal:

      tomas ~ $ mgnl tab-completion install
      ERR! Failed to set up tab completion due to missing write permissions in:
      ERR! 
      ERR!   - /etc/bash_completion.d
      ERR!   - /Users/tomas/.mgnl
      ERR! 
      ERR! Did you run installation as root? If so, you'd need to add the flag --unsafe-perm, but that's not recommended for security reasons.
      ERR! Tab autocompletion could not be installed, since none of typical related directories or files were found and accessible.
      
      
      tomas ~ $ sudo mgnl tab-completion install --unsafe-perm
      Password:
      
        error: unknown option `--unsafe-perm'
      
      
      tomas ~ $ sudo mgnl tab-completion install
      ERR! Failed to set up tab completion due to missing write permissions in:
      ERR! 
      ERR!   - /etc/bash_completion.d
      ERR!   - /Users/tomas/.mgnl
      ERR! 
      ERR! Did you run installation as root? If so, you'd need to add the flag --unsafe-perm, but that's not recommended for security reasons.
      ERR! Tab autocompletion could not be installed, since none of typical related directories or files were found and accessible.
      

      I don't have "source /usr/local/lib/node_modules/@magnolia/cli/extra/mgnl-autocompletion.sh" in my .profile

      Any idea? thanks!

        Checklists

        Acceptance criteria

          Attachments

            Activity

              People

              Assignee:
              fgrilli Federico Grilli
              Reporter:
              tgregovsky Tomáš Gregovský
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Checklists

                  Bug DoR
                  DoD