title: nvm on MacOS init says: zsh compinit: insecure directories, run compaudit for list
body: <p>I have just installed and configures <code>nvm</code> (<a href="https://github.com/nvm-sh/nvm" rel="nofollow noreferrer">https://github.com/nvm-sh/nvm</a>)
  on macOS</p>
  <p>as (in <code>.zshrc</code>)</p>
  <pre><code>export NVM_DIR=&quot;$HOME/.nvm&quot;
  export PATH=$PATH:$NVM_DIR
  [ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh&quot;  # This loads nvm
  [ -s &quot;$NVM_DIR/bash_completion&quot; ] &amp;&amp; \. &quot;$NVM_DIR/bash_completion&quot;  # This loads nvm bash_completion
  </code></pre>
  <p>But every new Shell window or tab now warns about insecure directories</p>
  <pre><code>zsh compinit: insecure directories, run compaudit for list.
  Ignore insecure directories and continue [y] or abort compinit [n]? 
  compinit: initialization aborted
  complete:13: command not found: compdef
  </code></pre>
  <p>What to do with that?</p>
  <hr />
  <p>More info</p>
  <p>MacOS Catalina</p>
  <p>using default zshell</p>
  <p>nvm -v
  0.38.0</p>
  <p><a href="https://i.stack.imgur.com/BbBby.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BbBby.png" alt="enter image description here" /></a></p>