title: npm ERR! ELOOP: too many symbolic links encountered (cordova-plugin-app-event broken symbolic link)
body: <p>my problem is found in the title. I try to open an Ionic project, which uses <em>ionic-native/barcode-scanner</em>. But if I try to install anything with npm, this error occurs:</p>
  
  <blockquote>
    <p>npm ERR! ELOOP: too many symbolic links encountered, access
    '/<em>path/to</em>/node_modules/cordova-plugin-app-event'</p>
  </blockquote>
  
  <p>I found that error in the internet, but no working solution. Deleting the <em>node_modules</em>-Directory and doing <code>npm i -D -E @ionic/app-scripts</code> doesn't help. </p>
  
  <p>Here's what I found out with the file command:</p>
  
  <blockquote>
    <p>file cordova-plugin-app-event<br>
    cordova-plugin-app-event: broken symbolic link to cordova-plugin-app-event</p>
  </blockquote>
  
  <p>So the <code>npm i -D -E @ionic/app-scripts</code>-command always creates a broken symbolic link.</p>
  
  <p>I'm on an Arch Linux derivate and npm is installed through pacman. <em>NPM</em> is version 6.4.1, <em>Ionic</em> is 4.3.1 . I also tried to re-install <em>NPM</em> and <em>node.js</em> in pacman.</p>
  
  <p>There's also that warning:</p>
  
  <blockquote>
    <p>[WARN] Detected locally installed Ionic CLI, but it's too old--using
    global CLI.</p>
  </blockquote>
  
  <p>Trying to solve that with <code>npm remove ionic --save-dev</code> or <code>npm install ionic@latest --save</code> again throws that symlink error.</p>
  
  <p>I can't continue working without solving the error, so I'd be very grateful for all kind of help.</p>