Npm ERR! ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'


#1

I’m building my projects on bitrise.io and since I updated my app scripts and npm to v5 I have the same problem.
But its not possible to use npm 4 because its very slow -.- It takes more than 45 minutes and this is timeout for it.
(Android is working fine within 25 minutes)

So that’s the log.

+ ionic cordova build ios --prod --release
> cordova platform add --save ios
⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command  Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command ⠏ Running command ⠋ Running command ⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ✖ Running command - failed!
[ERROR] An error occurred while running cordova platform add --save ios (exit
code 1):

Using cordova-fetch for cordova-ios@^4.4.0
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: org.example
Name: Example
iOS project created with cordova-ios@4.4.0
Discovered plugin "com-sarriaroman-photoviewer" in config.xml. Adding it
to the project
Installing "com-sarriaroman-photoviewer" for ios
Adding com-sarriaroman-photoviewer to package.json
Saved plugin info for "com-sarriaroman-photoviewer" to config.xml
Discovered plugin "cordova-image-picker" in config.xml. Adding it to the
project
Installing "cordova-image-picker" for ios
Adding cordova-image-picker to package.json
Saved plugin info for "cordova-image-picker" to config.xml
Discovered plugin "cordova-plugin-app-event" in config.xml. Adding it to
the project
Installing "cordova-plugin-app-event" for ios
Adding cordova-plugin-app-event to package.json
Saved plugin info for "cordova-plugin-app-event" to config.xml
Discovered plugin "cordova-plugin-app-version" in config.xml. Adding it
to the project
Installing "cordova-plugin-app-version" for ios
Adding cordova-plugin-app-version to package.json
Saved plugin info for "cordova-plugin-app-version" to config.xml
Discovered plugin "cordova-plugin-background-mode" in config.xml. Adding
it to the project
Installing "cordova-plugin-background-mode" for ios
Failed to install 'cordova-plugin-background-mode': Error
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:205:33
at _rejected
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:864:24)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:890:30
at Promise.when
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:624:44
at runSingle
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
at flush
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:95:7)
at process._tickCallback (internal/process/next_tick.js:161:9)
Failed to restore plugin "cordova-plugin-background-mode" from
config.xml. You might need to try adding it again. Error: Failed to
fetch plugin cordova-plugin-device via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
Discovered plugin "cordova-plugin-badge" in config.xml. Adding it to the
project
Failed to restore plugin "cordova-plugin-badge" from config.xml. You
might need to try adding it again. Error: Failed to fetch plugin
cordova-plugin-badge@^0.8.0 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/vagrant/git/node_modules/cordova-plugin-device/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
'/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!
/Users/vagrant/.npm/_logs/2017-06-29T22_33_23_738Z-debug.log
Discovered plugin "cordova-plugin-camera" in config.xml. Adding it to
the project
Failed to restore plugin "cordova-plugin-camera" from config.xml. You
might need to try adding it again. Error: Failed to fetch plugin
cordova-plugin-camera@^2.4.1 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/vagrant/git/node_modules/cordova-plugin-device/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
'/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!
/Users/vagrant/.npm/_logs/2017-06-29T22_33_31_656Z-debug.log
Discovered plugin "cordova-plugin-clipboard2" in config.xml. Adding it
to the project
Failed to restore plugin "cordova-plugin-clipboard2" from config.xml.
You might need to try adding it again. Error: Failed to fetch plugin
cordova-plugin-clipboard2@^0.1.0 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/vagrant/git/node_modules/cordova-plugin-device/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
'/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!
/Users/vagrant/.npm/_logs/2017-06-29T22_36_48_274Z-debug.log
Discovered plugin "onesignal-cordova-plugin" in config.xml. Adding it to
the project
Failed to restore plugin "onesignal-cordova-plugin" from config.xml. You
might need to try adding it again. Error: Failed to fetch plugin
onesignal-cordova-plugin@2.1.2 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/vagrant/git/node_modules/cordova-plugin-device/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
'/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!
/Users/vagrant/.npm/_logs/2017-06-29T22_36_57_188Z-debug.log
Discovered plugin "uk.co.workingedge.phonegap.plugin.launchnavigator" in
config.xml. Adding it to the project
Failed to restore plugin
"uk.co.workingedge.phonegap.plugin.launchnavigator" from config.xml. You
might need to try adding it again. Error: Failed to fetch plugin
uk.co.workingedge.phonegap.plugin.launchnavigator@^3.2.2 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/vagrant/git/node_modules/cordova-plugin-device/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
'/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!
/Users/vagrant/.npm/_logs/2017-06-29T22_37_05_557Z-debug.log
--save flag or autosave detected
Saving ios@~4.4.0 into config.xml file ...

2017-06-29T22_35_50_084Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.1.2/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'cordova-plugin-splashscreen@^4.0.3',
1 verbose cli   '--save' ]
2 info using npm@5.0.3
3 info using node@v8.1.2
4 verbose npm-session 9f538b790cedc362
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/cordova-plugin-splashscreen 331ms
8 silly pacote range manifest for cordova-plugin-splashscreen@^4.0.3 fetched in 380ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly fetchPackageMetaData error for cordova-plugin-device@file:node_modules/cordova-plugin-device ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'
13 verbose stack Error: ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'
14 verbose cwd /Users/vagrant/git/node_modules
15 verbose Darwin 16.6.0
16 verbose argv "/usr/local/Cellar/node/8.1.2/bin/node" "/usr/local/bin/npm" "install" "cordova-plugin-splashscreen@^4.0.3" "--save"
17 verbose node v8.1.2
18 verbose npm  v5.0.3
19 error path /Users/vagrant/git/node_modules/cordova-plugin-device/package.json
20 error code ELOOP
21 error errno -62
22 error syscall open
23 error ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'
24 verbose exit [ -62, true ]

2017-06-29T22_35_58_013Z-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.1.2/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'cordova-plugin-statusbar@^2.2.3',
1 verbose cli   '--save' ]
2 info using npm@5.0.3
3 info using node@v8.1.2
4 verbose npm-session 89824bb1e40f99e1
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 200 https://registry.npmjs.org/cordova-plugin-statusbar 146ms
8 silly pacote range manifest for cordova-plugin-statusbar@^2.2.3 fetched in 205ms
9 silly install loadIdealTree
10 silly install cloneCurrentTreeToIdealTree
11 silly install loadShrinkwrap
12 silly fetchPackageMetaData error for cordova-plugin-device@file:node_modules/cordova-plugin-device ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'
13 verbose stack Error: ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'
14 verbose cwd /Users/vagrant/git/node_modules
15 verbose Darwin 16.6.0
16 verbose argv "/usr/local/Cellar/node/8.1.2/bin/node" "/usr/local/bin/npm" "install" "cordova-plugin-statusbar@^2.2.3" "--save"
17 verbose node v8.1.2
18 verbose npm  v5.0.3
19 error path /Users/vagrant/git/node_modules/cordova-plugin-device/package.json
20 error code ELOOP
21 error errno -62
22 error syscall open
23 error ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'
24 verbose exit [ -62, true ]

I’m using:

  • cordova@7.0.1
  • ionic@3.4.0
  • npm@5.0.4

The stupid thing is that npm install works but if ionic installs the packages it is not working.

Do you know a solution for this?


ELOOP: too many symbolic links encountered
#2

You have this earlier error in the output. Maybe the ELOOP is “just” a follow up error?


#3

Hmm I think no.
Because this is the whole build log from beginning. So the command is executed and then it stops with this error.

+ ionic cordova build ios --debug --verbose
[DEBUG] Loading global plugin @ionic/cli-plugin-proxy
[DEBUG] Throwing PLUGIN_NOT_INSTALLED for global @ionic/cli-plugin-proxy
[DEBUG] Loading local plugin @ionic/cli-plugin-cordova
[DEBUG] Loading local plugin @ionic/cli-plugin-ionic-angular
> cordova platform add --save ios
⠙ Running command ⠹ Running command ⠸ Running command ⠼ Running command ⠴ Running command ⠦ Running command ⠧ Running command ⠇ Running command
[DEBUG] !!! ERROR ENCOUNTERED !!!
[ERROR] An error occurred while running cordova platform add --save ios (exit
code 1):

Using cordova-fetch for cordova-ios@^4.4.0
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: org.example
Name: Example
iOS project created with cordova-ios@4.4.0
Discovered plugin "com-sarriaroman-photoviewer" in config.xml. Adding it
to the project
Installing "com-sarriaroman-photoviewer" for ios
Adding com-sarriaroman-photoviewer to package.json
Saved plugin info for "com-sarriaroman-photoviewer" to config.xml
Discovered plugin "cordova-image-picker" in config.xml. Adding it to the
project
Installing "cordova-image-picker" for ios
Adding cordova-image-picker to package.json
Saved plugin info for "cordova-image-picker" to config.xml
Discovered plugin "cordova-plugin-app-event" in config.xml. Adding it to
the project
Installing "cordova-plugin-app-event" for ios
Adding cordova-plugin-app-event to package.json
Saved plugin info for "cordova-plugin-app-event" to config.xml
Discovered plugin "cordova-plugin-app-version" in config.xml. Adding it
to the project
Installing "cordova-plugin-app-version" for ios
Adding cordova-plugin-app-version to package.json
Saved plugin info for "cordova-plugin-app-version" to config.xml
Discovered plugin "cordova-plugin-background-mode" in config.xml. Adding
it to the project
Installing "cordova-plugin-background-mode" for ios
Failed to install 'cordova-plugin-background-mode': Error
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:205:33
at _rejected
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:864:24)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:890:30
at Promise.when
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
at Promise.promise.promiseDispatch
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
at
/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:624:44
at runSingle
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
at flush
(/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:95:7)
at process._tickCallback (internal/process/next_tick.js:161:9)
Failed to restore plugin "cordova-plugin-background-mode" from
config.xml. You might need to try adding it again. Error: Failed to
fetch plugin cordova-plugin-device via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
Discovered plugin "cordova-plugin-badge" in config.xml. Adding it to the
project
Failed to restore plugin "cordova-plugin-badge" from config.xml. You
might need to try adding it again. Error: Failed to fetch plugin
cordova-plugin-badge@^0.8.0 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/vagrant/git/node_modules/cordova-plugin-device/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
'/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!
/Users/vagrant/.npm/_logs/2017-06-30T16_42_10_775Z-debug.log
Discovered plugin "cordova-plugin-camera" in config.xml. Adding it to
the project
Failed to restore plugin "cordova-plugin-camera" from config.xml. You
might need to try adding it again. Error: Failed to fetch plugin
cordova-plugin-camera@^2.4.1 via registry.
Probably this is either a connection problem, or plugin spec is
incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 194 Error output:
npm ERR! path
/Users/vagrant/git/node_modules/cordova-plugin-device/package.json
npm ERR! code ELOOP
npm ERR! errno -62
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open
'/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'

I will try to re install cordova-plugin-background-mode now.


#4

The cordova command is executed in the background, and only when it really crashes does ionic output the [DEBUG] !!! ERROR ENCOUNTERED !!! bit and ALL the output of the cordova process. So whatever happens in there ends up in that bad error, but the smaller ones before could be the actual reason for that.


#5

Yes thank you.
I tried without the plugin I read the most time cordova-plugin-device with version ^1.1.6 and yes, now it’s working.
So I don’t know what the problem is with this plugin because the package.json looks normal but this must be the problem…


#6

Vagrant’s filesystem is weird when it comes to symlinks. You might want to read through this.


#7

@rapropos and @Sujan12,
Problem solved now.

The problem was not the plugin… It was the package-lock.json! :astonished:

This small patch is the solution.
Then the plugin will be installed directly from package.json and not via package-lock.json.

I don’t know if the integrity hash is wrong or the resolved path. Maybe the version or the name is wrong. I don’t know.
I only know that it is fixed without this line.

package.json

"dependencies": {
    "cordova-plugin-device": "^1.1.6"
}

Thank you for your help and ideas!


What a disappointment! Ionic has become the Java of mobile development