ELOOP: too many symbolic links encountered
See original GitHub issueYour 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
- ionic start newBlank blank
- ionic cordova plugin add de.appplant.cordova.plugin.local-notification
- 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:
- Created 6 years ago
- Comments:13
Top GitHub Comments
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.
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: