Skip to content

Instantly share code, notes, and snippets.

View DanHerbert's full-sized avatar

Dan Herbert DanHerbert

View GitHub Profile
@DanHerbert
DanHerbert / INSTRUCTIONS_1liner.md
Last active September 7, 2023 15:34 — forked from steinwaywhw/One Liner to Download the Latest Release from Github Repo.md
One Liner (& multi-liner) to download latest Github repo release

1-liner to download latest Github repo release

Requires 2 apps to be installed on your machine:

  1. wget
  2. jq

Replace amd64.deb in the command below with the file name ending used in the project you're downloading.

Keybase proof

I hereby claim:

  • I am danherbert on github.
  • I am danherbert (https://keybase.io/danherbert) on keybase.
  • I have a public key whose fingerprint is B692 4325 34E2 D4D6 9AF8 8FC7 A9FD 6A58 FE51 843E

To claim this, I am signing this object:

@DanHerbert
DanHerbert / fix-homebrew-npm.md
Last active November 27, 2024 13:36
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

OBSOLETE

This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.

I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.