question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ELOOP: too many symbolic links encountered

See original GitHub issue

Your Environment

  • Plugin version: 0.8.5
  • Platform: Android
  • OS version: Linux 4.4 ( Ubuntu 16.04 )
  • Device manufacturer / model: Genymotion / ADV emulator
  • Cordova version (cordova -v): 7.0.1
  • Cordova platform version (cordova platform ls): android 6.2.3
  • Plugin config
  • Ionic Version (if using Ionic) : 3.4.0

Expected Behavior

Should be installed the plugin sucessfully

Actual Behavior

Throws npm error:

npm ERR! path /home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json npm ERR! code ELOOP npm ERR! errno -40 npm ERR! syscall open npm ERR! ELOOP: too many symbolic links encountered, open ‘/home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json’

npm ERR! A complete log of this run can be found in: npm ERR! /home/marcelo/.npm/_logs/2017-06-19T14_09_29_521Z-debug.log

Steps to Reproduce

Reproduce this issue; include code to reproduce, if relevant

  1. ionic start newBlank blank
  2. ionic cordova plugin add de.appplant.cordova.plugin.local-notification
  3. npm install --save @ ionic-native/local-notifications

Context

Start a new and clean ionic project with local notifications

Debug logs

0 info it worked if it ends with ok 1 verbose cli [ ‘/usr/local/bin/node’, 1 verbose cli ‘/usr/local/bin/npm’, 1 verbose cli ‘install’, 1 verbose cli ‘–save’, 1 verbose cli ‘@ionic-native/local-notifications’ ] 2 info using npm@5.0.3 3 info using node@v7.8.0 4 verbose npm-session 16e292c3ded2cd7c 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch GET 304 https://registry.npmjs.org/@ionic-native%2Flocal-notifications 1285ms (from cache) 8 silly pacote tag manifest for @ionic-native/local-notifications@latest fetched in 1322ms 9 silly install loadIdealTree 10 silly install cloneCurrentTreeToIdealTree 11 silly install loadShrinkwrap 12 silly fetchPackageMetaData error for cordova-plugin-app-event@file:node_modules/cordova-plugin-app-event ELOOP: too many symbolic links encountered, open ‘/home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json’ 13 verbose stack Error: ELOOP: too many symbolic links encountered, open ‘/home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json’ 14 verbose cwd /home/marcelo/Documents/ionic/newblank 15 verbose Linux 4.4.0-79-generic 16 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “install” “–save” “@ionic-native/local-notifications” 17 verbose node v7.8.0 18 verbose npm v5.0.3 19 error path /home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json 20 error code ELOOP 21 error errno -40 22 error syscall open 23 error ELOOP: too many symbolic links encountered, open ‘/home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json’ 24 verbose exit [ -40, true ]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

17reactions
sxagancommented, Aug 4, 2017

I looked into node_modules and there is a file/symlink of the plugin i wanted to install. once i removed that, i have no problem installing the plugin.

17reactions
marioleedcommented, Jul 13, 2017

For me it was enough to downgrade npm to npm i -g npm@4.6.1. Still using node v8.1.4.

Then i reinstalled everything:

ionic cordova platform rm ios android
rm -rf node_modules platforms plugins package-lock.json
ionic cordova platform add ios
ionic cordova platform add android
Read more comments on GitHub >

github_iconTop Results From Across the Web

ELOOP: too many symbolic links encountered - Stack Overflow
When it gets to "\[domain]\users$", the "ELOOP" error is logged because there's a max depth of 2000, and my company's Users folder has...
Read more >
NPM Install - ELOOP too many levels of symbolic links #17447
I deployed a new project I was working on to heroku and found that when visiting the URL I got an application error....
Read more >
Solving the “Too many levels of symbolic links” Error - Baeldung
The symlink was created, but it is actually broken. ... The reason for this error is that symbolic links with relative sources are...
Read more >
ELOOP: too many symbolic links encountered - ionic-v3
Its happening when install local notifications Steps to reproduce: 1)ionic start newBlank blank 2) ionic cordova plugin add ...
Read more >
Upgrading npm fails with too many symbolic links ...
I tried to run sudo npm install -g npm to upgrade from 6.9.0 → 6.12.0. (I have to always use sudo whenever installing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found