Installing a github.com branch using Yarn

Currently Spotify Web Helper is not working in my Node app. I want to try implementing this solution in my Node.js app:

I’ve been working on this on TimStallard/spotify-web-helper, on the branch without-webhelper. I’ve changed the default port to 4371, and removed all of the WebHelper code, and it appears to be working as expected on both Windows and Linux.

This repo is from October 2016, and there’s no guarantee that: 1) I’ll work in 2019; 2) That the spotify-web-helper program/protocol even exists in 2019.

But it’s worth a try, because why not.

How do I install the git branch named without-webhelper from the github repository TimStallard/spotify-web-helper ?

Template:

yarn add <git remote url>#<branch/commit/tag>

Example:

yarn add https://github.com/opentripplanner/otp-react-redux.git#result-post-processor

(Credit for example: https://stackoverflow.com/a/49992734)

So in our use case, that would be:

yarn add https://github.com/TimStallard/spotify-web-helper.git#without-webhelper

And that’s it for this post!

Organic, fair-sourced DevOps and Full-Stack things. This is a BYOB Establishment — Bring Your Own hipster Beard.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store