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

problem to install tab-completition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Neutral Neutral
    • 2.2.0
    • 2.1.0
    • None
    • Yes
    • Basel 122
    • 1

      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!

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD