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

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