spotify / web-api-examples

Basic examples to authenticate and fetch data using the Spotify Web API
Apache License 2.0
1.99k stars 1.67k forks source link

Cannot `npm install` in `get_user_profile` because of internal Spotify Artifactory links #109

Open simonhaenisch opened 1 year ago

simonhaenisch commented 1 year ago

The package-lock.json resolves tarballs to internal artifactory.spotify.net links that can't be reached by the public, e.g.

https://github.com/spotify/web-api-examples/blob/fd309a497e3582c9f94acf22d638d30bc8e5f7a8/get_user_profile/package-lock.json#L17

This causes npm install to get stuck.

You should probably:

  1. rm package-lock.json
  2. npm_config_registry="https://registry.npmjs.org/" npm install

To regenerate the lock-file with usable tarball URLs (and to not potentially leak implementation details of your internal Artifactory setup to the public 🤓).