npm Fetch Failed. Error Code 504

If you tried

npm i --save-dev share-button

like me. Try using the github repo like that

npm install --save-dev carrot/share-button

That works without an error on my machine :)